Mail Archives: djgpp/1998/06/16/22:25:29
> Javier Calleja wrote:
>
> Hi world:
>
> I am programming and I want to create an assembler source file.
>
> I know, I know, I must use the '-S' option in the gcc, but I need to
> know if it exists an option that in the file I compile I am be allowed
> to see the C source and the assembler that is created in each block of
> C.
There is no option to intersperse the assembler output with the C source
that generated it. However, you can do:
gcc -c -g -Wa,-a,-ad [other options] foo.c
which will compile and assemble foo.c, and generate on stdout a listing
file which includes the C source and assembler.
Btw, please do not post in HTML.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -