第4章アルゴリズムの言語による実現:低水準プログラミング言語
Labs実習
1. Work with a partner to collaborate using GitHub. Both students should create GitHub accounts, which are free. Student A creates a repository and adds Student B as a collaborator. B pulls the repo, makes changes, and pushes them. A pulls B’s changes, makes some additional changes, and pushes them. B pulls again and sees A’s changes reflected.
英語のヒント
1. 2人1組で、GitHubを使う共同作業を行いなさい。両者とも、無料のGitHubアカウントを作る。学生Aがリポジトリーを作り、学生Bを共同作業者に加える。Bはリポジトリーをプルし、変更を加え、プッシュする。AはBの変更をプルし、追加の変更を加え、プッシュする。Bは再度プルし、Aの変更が反映されていることを確認する。
2. Set up a Git server and client. Install and configure the Git server on your computer; you may need to consult Internet resources. Then, use the command line
git client tool to create a repository, add some files to it, and push the files. Confirm that you can pull the repo and view your changes from a different computer or in a different directory.英語のヒント
2. Gitサーバーとクライアントを設定しなさい。自分のコンピューターにGitサーバーをインストールし、設定する。インターネット上の資料を参照する必要があるかもしれない。次に、コマンドラインのGitクライアントツールでリポジトリーを作り、ファイルをいくつか追加して、プッシュする。別のコンピューター、または別のディレクトリーからリポジトリーをプルし、変更内容を確認できることを確かめなさい。
3. Write two versions of a program that takes as input a 2-D array of integers and increment each element by 1. The first version accesses the array row-wise. The second version accesses the array column-wise. Which version is faster? Why?
英語のヒント
3. 整数の2次元配列を入力とし、各要素を1ずつ増やすプログラムを、2通り書きなさい。第1の版では配列に行方向にアクセスし、第2の版では列方向にアクセスする。どちらが速いか。それはなぜか。
4. Experiment with the QEMU emulator (https://openstax.org/r/76QEMUEmulat) to emulate the latest Intel processor and run a toy kernel using one of the following:
4. QEMUエミュレーター(https://openstax.org/r/76QEMUEmulat)で、最新のIntelプロセッサーをエミュレートする実験をし、次のいずれかを使って、小規模なカーネルを実行しなさい。