[Intro to UNIX Software Development]

COMPILATION


[COMPILATION PROCESS]


The Preprocessor


Generating Object Files

Compiles code into machine code but doesn't resolve all symbols


Linking


Compilation options


Viewing symbols in an object file with nm

Using hello.c from ex1:
	% cc -c hello.c
	% nm hello.o
	00000000 t ___gnu_compiled_c
	         U ___main
	00000010 T _main
	         U _printf
	00000000 t gcc2_compiled.


[BACK][FORWARD]


Prepared by Erik Nygren (nygren@mit.edu)