Mail Archives: djgpp/1997/09/18/20:21:20
At 03:09 9/18/1997 -0700, csantill AT lausd DOT k12 DOT ca DOT us wrote:
>from: csantill AT lausd DOT k12 DOT ca DOT us
>
>Does any body remember how to get GCC to output the asm source
>(foo.s) of your C file (foo.c) and then compile&link? Somebody
>knew it on the list a week or two ago but I forgot to copy it.
Hmm. The standard way is to use `gcc -S' but this stops after doing the
compile, and leaves it at the asm. You can do this:
gcc -Wa,-aln=foo.s foo.c
That outputs the assembler's listing file, which includes the asm but also
the hex machine code, the addresses, and various other junk. But it does
keep going on to the link phase.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -