How do I tell gcc to generate foo.s and foo.lst files?

Sergei Yakovlev syakovlev at thinksrs.com
Sun May 11 18:11:34 UTC 2008


Google suggested to use:
gcc -O2 -S -c foo.c
and
gcc -c -g -Wa,-a,-ad [other GCC options] foo.c > foo.lst

So I've run:
m68k-elf-gcc -c -g -Wa,-a,-ad  m5223x.c > m5223x.lst
File m5223x.lst was actually empty :(
68K GAS  /cygdrive/c/TEMP/ccyI14Wz.s             page 1


   1                       .file    "m5223x.c"
   2                       .file 1 "m5223x.c"
  10                   .Ltext0:
  11                   .Letext0:
68K GAS  /cygdrive/c/TEMP/ccyI14Wz.s             page 2


DEFINED SYMBOLS
                            *ABS*:00000000 m5223x.c

NO UNDEFINED SYMBOLS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20080511/93e4e0c1/attachment.html>


More information about the coldfire-gnu-discuss mailing list