1And 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)
2Textbook Reading¶
K&R Ch. 1-5
3Additional References¶
4Exercises¶
Check your knowledge!
4.1Conceptual Review¶
True/False: In compiled languages, the compile time is generally pretty fast, however the run-time is significantly slower than interpreted languages.
Solution
False. Reasonable compilation time, excellent run-time performance. It optimizes for a given processor type and operating system.