Producing .o and .s files at once

Alexandre Oliva
Sun Feb 27 06:46:00 GMT 2000

On Feb 27, 2000, "Tom Womack" <> 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     Enjoy Guaraná
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{,}   Write to mailing lists, not to me

More information about the Gcc mailing list