Summary
And in Conclusion
- C was chosen to exploit underlying features of HW.
- We will begin discussiong memory management in a lot more detail next time with pointers and arrays.
- C is compiled and linked to make executable.
- Pro: Speed
- Con: Slow edit-compile cycle
- C looks mostly like Java, except no object oriented programming
- Abstract Data Types are defined through structs; more next time
bool:0andNULLare false. Everything else is true.- Use
intN_tanduintN_tfor portable code!
- Uninitialized variables contain garbage.
- “Bohrbugs” (repeatable) vs “Heisenbugs” (random)
Textbook Reading
K&R Ch. 1-5
Additional References
Exercises
Check your knowledge!
Conceptual Review
Solution
False. Reasonable compilation time, excellent run-time performance. It optimizes for a given processor type and operating system.