|
Home > Archive > Unix Programming > November 2006 > source annotations
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
source annotations
|
|
|
| Folks,
Anybody got lucky with generating source annotations along with assembly
listing through the gcc compiler.
If so,can you share the compiler/assembler options.
One crude way is to debug the code with -g and then do an 'objdump -S' on the
object/executable file.
Thanx,
| |
| Lew Pitcher 2006-11-30, 7:27 am |
|
grid wrote:
> Folks,
> Anybody got lucky with generating source annotations along with assembly
> listing through the gcc compiler.
>
> If so,can you share the compiler/assembler options.
gcc -S -dAp source.c
generates the annoted assembler code into source.s
See gcc(1) for a list of options
HTH
--
Lew
| |
| Michel Talon 2006-11-30, 1:17 pm |
| grid <prohit99@gmail.com> wrote:
> Folks,
> Anybody got lucky with generating source annotations along with assembly
> listing through the gcc compiler.
>
> If so,can you share the compiler/assembler options.
>
> One crude way is to debug the code with -g and then do an 'objdump -S' on the
> object/executable file.
>
> Thanx,
>
The info for as says:
gcc -c -g -O -Wa,-alh,-L file.c
and this works.
--
Michel TALON
|
|
|
|
|