|
META TOPICPARENT |
name="CourseExercises" |
Exercises 3: Compilation Tools: Editor, Compiler, Linker, Debugger, Make
Goal: |
|
Exercise 1: emacs |
|
< < | Start the emacs editor. Read through the online tutorial and try everything. You may edit the yesterday.txt file from last week’s exercise. |
> > | Start the emacs editor. Read through the on-line tutorial and try everything. You may edit the yesterday.txt file from last week’s exercise. |
| |
| Create Makefiles for the code examples on C programming we had last week.
Exercise 3: gdb |
|
< < | In last weeks codeExamples there is a folder called wrong. It contain an attempt to calculate the Fibonacci series. First have a look at the Makefile. CFLAGS contains the option -g to keep the symbo table. Compile the program and execute it. You will see that something goes wrong. |
> > | In last week's codeExamples there is a folder called wrong. It contains an attempt to calculate the Fibonacci series. First have a look at the Makefile. CFLAGS contains the option -g to keep the symbol table. Compile the program and execute it. You will see that something goes wrong. |
|
Start gdb on the program. Insert a break point at main and step through the program printing the contents of the variables. Try to figure out like this where things start to go wrong. |