This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Producing .o and .s files at once


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]