This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: How to cross complie c to assembly ?


Hi Pratya,

Use the -S switch:
gcc -S -fverbose-asm foo.c
g++ -S -fverbose-asm bar.cpp

To see what the available switches are, use:
gcc -v --help

HTH,
--Eljay


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