-
The compilation system performs the translation of the
source file hello.c to an executable hello
which consists of a sequence of low-level machine
language instructions.
-
To obtain the preprocessed source program
hello.i, do:
$ gcc -o hello.i -E hello.c
-
To obtain the assembly program hello.s, do:
$ gcc -o hello.s -S hello.c
-
To obtain the binary object file hello.o (similar to java hello.class file), do:
$ gcc -o hello.o -c hello.c