[LCP]stdio.h reference

Erik Mouw J.A.K.Mouw at its.tudelft.nl
Tue Jan 8 10:59:05 UTC 2002


On Mon, Jan 07, 2002 at 05:20:29PM +0100, ianezz at sodalia.it wrote:
> You can see the output of the various stages. Given you have your
> program ``sample.c'':

Or much easier:

  gcc -save-temps -O2 -Wall -o foo foo.c

Which gives you foo.i (proprocessed code), foo.s (assembly code), foo.o
(object file), and foo (binary).

"gcc -v" is also quite useful, it shows you exactly what the compiler
is doing, including all include search paths of the preprocessor.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty
of Information Technology and Systems, Delft University of Technology,
PO BOX 5031, 2600 GA Delft, The Netherlands  Phone: +31-15-2783635
Fax: +31-15-2781843  Email: J.A.K.Mouw at its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/



More information about the linuxCprogramming mailing list