Changes

Jump to: navigation, search

SPO600 Compiled C Lab

1 byte removed, 13:30, 17 January 2014
Lab 2
-g # enable debugging information
-O0 # do not optimize (that's a capital letter and then the digit zero)
-fno-builtins builtin # do not use builtin function optimizations
3. The resulting binary is an ELF (Executable and Linkable Format) file, which contains multiple sections. These sections may contain [[Machine Language|object code]], link tables, [[Debugger|debugging]] [[Symbols|symbols]], program data (such as constants and the initial values of variables), metadata about the program and ELF sections, and comments.
(1) Add the compiler option <code>-static</code>. Note and explain the change in size, section headers, and the function call.
(2) Remove the compiler option <code>-fno-builtinsbuiltin</code>. Note and explain the change in the function call.
(3) Remove the compiler option <code>-g</code>. Note and explain the change in size, section headers, and disassembly output.

Navigation menu