This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: output assembly?


David:


I've found this to be less than universally supported.  I just tried
it on my gcc-3.0.4-based SH toolchain, for example, and got nothing
except mangeld function names in the assembly output--- no source
lines whatsoever.

I've found that objdump consistently does a better job.


Just my $0.02,


b.g.

On Mon, Apr 29, 2002 at 09:35:21AM -0700, David Dyck wrote:
> On Mon, 29 Apr 2002 at 08:11 -0500, William A. Gatliff <bgat@billgatliff.co...:
> 
> > Gcc's -S will produce assembly language.  Likewise, you can compile
> > with -c and -g, then run objdump --source on the object file.
> 
> Thanks for the mention of objdump --source (I missed that), but I find using
> the comiler/assembler useful to generate mixed assembly/source.o
> Maybe you will too?
> 
>     gcc -Wa,-adhln,-L -g -c
> 

-- 
Bill Gatliff
bgat@billgatliff.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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