COMP 206 Lecture Notes - Lecture 22: Segmentation Fault, Gnu Debugger, A.Out

11 views4 pages

Document Summary

C programs, especially those with pointers, can be difficult to debug correctly. We will review several that fit our unix/gnu tool-chain. First, we will look at simple strategies which don"t involve external tools. Then, he will give recommendations for c debugger tools. Write one line of c code, and then printf, so that every other line is a print statement. Print all the variables that have any value. These are usually strategies and the more stuck you are, the more printfs you should insert. If you"ve written a c doe with ha print. The pre-processor is a step in the c compilation process that you should read about on your own. It can be viewed as another language sitting on top of c. it transforms the code prior to actual compilation. #include is a directive , which is a pre-processor directive. It is read in the very first pass when running gcc.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents