COMP 206 Lecture 10: COMP 206 Lecture 10

50 views6 pages

Document Summary

Lecture 10 debugging and multi-file c programs. Solution: pre-processor: the pre-processor is a step in the c compilation process that you should read about on your own, the pre-processor can be viewed as another language sitting on top of c. It transforms the code prior to actual compilation: we(cid:859)(cid:448)e see(cid:374) o(cid:374)e e(cid:454)a(cid:373)ple so far, #include, some of the next most common directives, #define, #itdef, #else, and #endif, #pragma. It is the first step that the compiler performs with your file. It i(cid:374)tera(cid:272)ts o(cid:374)l(cid:455) (cid:449)ith the (cid:858)#(cid:859) dire(cid:272)ti(cid:448)es, all of (cid:449)hi(cid:272)h ha(cid:448)e a spe(cid:272)ial (cid:373)ea(cid:374)i(cid:374)g. It produ(cid:272)es a (cid:373)odified c file (cid:449)ith e(cid:454)te(cid:374)sio(cid:374) (cid:862). i(cid:863) (cid:271)(cid:455) (cid:272)o(cid:374)(cid:448)e(cid:374)tio(cid:374), (cid:449)here all the requested operations have been performed: the compiler flag -d interacts with the pre-compiler. If no value is give, the pre-processor removes are symbol it finds. Interaction with the compiler, not testable for 206. De(cid:271)ug (cid:894)(cid:862)a, (cid:271), (cid:272), d, = %d, %d, %d, %d, |(cid:374)(cid:863) a, (cid:271), (cid:272), d(cid:895);

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

Related Documents