|
|
@ -17,9 +17,13 @@ exercise is asking you to modify as you go. |
|
|
|
Note: |
|
|
|
Note: |
|
|
|
- In chapter 6 exercise 6, macOS malloc will almost never return a NULL pointer |
|
|
|
- In chapter 6 exercise 6, macOS malloc will almost never return a NULL pointer |
|
|
|
due to virtual memory overcommit, so you should check for |
|
|
|
due to virtual memory overcommit, so you should check for |
|
|
|
=size \=\= 1024 * 1024 * 100)= instead of =array \=\= NULL= |
|
|
|
~size == 1024 * 1024 * 100)~ instead of ~array == NULL~ |
|
|
|
- In chapter 8, I renamed =stack_t= to =my_stack_t= due to =std= naming conflict |
|
|
|
- In chapter 8, I renamed ~stack_t~ to ~my_stack_t~ due to a =std= naming |
|
|
|
on macOS |
|
|
|
conflict on macOS |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The first the 3 chapters of the course can be done interactively on the website. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[./bootdev-c.png]] |
|
|
|
|
|
|
|
|
|
|
|
** Build instructions |
|
|
|
** Build instructions |
|
|
|
|
|
|
|
|
|
|
@ -34,10 +38,6 @@ $ make run |
|
|
|
|
|
|
|
|
|
|
|
** Output |
|
|
|
** Output |
|
|
|
|
|
|
|
|
|
|
|
The first the 3 chapters of the course can be done interactively on the website. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[./bootdev-c.png]] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Successful output of all the tests: |
|
|
|
Successful output of all the tests: |
|
|
|
|
|
|
|
|
|
|
|
#+BEGIN_SRC sh |
|
|
|
#+BEGIN_SRC sh |
|
|
|