This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C and assembly listing


Why not use "as -adhls=FILE" to produce a listing with c and asm, and use a
grep pattern match to remove the object listing lines?


----- Original Message -----
From: "Tim Prince" <tprince@computer.org>
To: "Paolo Carlini" <pcarlini@unitus.it>; "Sanjiv Kumar Gupta"
<sanjivg@noida.hcltech.com>; <gcc@gcc.gnu.org>
Sent: Monday, November 05, 2001 3:20 PM
Subject: Re: C and assembly listing


>
> ----- Original Message -----
> From: "Paolo Carlini" <pcarlini@unitus.it>
> To: "Sanjiv Kumar Gupta" <sanjivg@noida.hcltech.com>; <gcc@gcc.gnu.org>
> Sent: Monday, November 05, 2001 4:17 AM
> Subject: Re: C and assembly listing
>
>
> > Sanjiv Kumar Gupta wrote:
> >
> > > Microsoft compiler has a /FA option to produce C and assembly
> mixture. Does
> > > gcc provide a similar one???
> >
> > Usually, I invoke objdump with the -S switch on the object file (*.o)
> to obtain
> > that mixture (with -g for gcc).
> > Dunno if something like this can also be produced by gcc itself.
> >
> > Cheers,
> > Paolo Carlini.
> >
> This has been the best option for the x86 version, although it has been
> known to skip a few instructions.
>
>



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]