Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[coldfire-gnu-discuss] How do I tell gcc to generate foo.s and foo.lst files?


  • To: coldfire-gnu-discuss@xxxxxxxxxxxxxxxx
  • Subject: [coldfire-gnu-discuss] How do I tell gcc to generate foo.s and foo.lst files?
  • From: Sergei Yakovlev <syakovlev@xxxxxxxxxxxx>
  • Date: Sun, 11 May 2008 11:11:34 -0700

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