Difference: CompilationTools (2 vs. 3)

Revision 32017-10-20 - uli

Line: 1 to 1
 
META TOPICPARENT name="CourseExercises"

Exercises 3: Compilation Tools: Editor, Compiler, Linker, Debugger, Make

Goal:

Line: 11 to 11
 
  • the gnu debugger (gdb)

Exercise 1: emacs

Changed:
<
<
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.
 
  • Scroll up and down the text

  • do a copy / past

  • search for the string yesterday in the text

Line: 53 to 53
 Create Makefiles for the code examples on C programming we had last week.

Exercise 3: gdb

Changed:
<
<
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.
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback