Producing .o and .s files at once

Alexandre Oliva oliva@lsd.ic.unicamp.br
Sun Feb 27 06:46:00 GMT 2000


On Feb 27, 2000, "Tom Womack" <tom@womack.net> wrote:

> you can get it to output an assembler listing of the program at the same
> time as compiling it.

gcc -save-temps should do it too.

>> From the gcc documentation, it appears that I have to do

> g++ -c -S foo.cpp
> g++ -c foo.cpp
             ^^^ this could just be foo.s

-- 
Alexandre Oliva     http://www.ic.unicamp.br/~oliva/     Enjoy Guaraná
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me



More information about the Gcc mailing list