COMP 3500 Lecture Notes - Lecture 8: Include Directive, Root Directory

70 views2 pages

Document Summary

Note: i rebuilt the kernel by adding "hello world!" into the boot message. In what follows, i summarize my process of rebuilding the os161 kernel. You may also found the three common mistakes at the end of this document. Your hello. c should be as simple as the following code: When we compile os161 after adding hello. c, we may encounter the following compilation error: edit kern/conf/conf. kern cd ~/cs161/src/kern/conf vi conf. kern. /main. c #search main. c in conf. kern see also line 374. Add the following line: file main/hello. c: in directory ~/cs161/src/kern/include. Create a header file called hello. h: add #include into main. c, important! Configure your tree for the machine on which you are working. cd ~/cs161/src. /configure: configure a kernel named asst0. cd ~/cs161/src/kern/conf. Use (cid:858)echo (cid:859) to check your . cd /compile/asst0 make depend make make install important: now also build the user level utilties. cd ~/cs161/src make, run os161: change into your root directory. Run the machine simulator on your operating system.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers