Linux MIPS Architecture development
 help / color / mirror / Atom feed
* How to get the c source code in disassembly?
@ 2003-01-30 22:45 Long Li
  2003-01-31  0:27 ` Keith Owens
  0 siblings, 1 reply; 2+ messages in thread
From: Long Li @ 2003-01-30 22:45 UTC (permalink / raw)
  To: linux-mips

Hi, 

I am having a problem with intermixing the C source
code in the disassembly. I am using a MIPS
crosscompiler on Redhat 7.1, gcc-3.0.4,
binutils-2.11.2. When I compiled the C code, I added
the -g option, and then use 'objdump -Sd' to get the
disassembly. However, I did not see any C code mixed
with the assembly, as said in the objdump manual when
using -S option. Could you give me some help or
suggestions? 

Thanks a lot!


Long


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to get the c source code in disassembly?
  2003-01-30 22:45 How to get the c source code in disassembly? Long Li
@ 2003-01-31  0:27 ` Keith Owens
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Owens @ 2003-01-31  0:27 UTC (permalink / raw)
  To: Long Li; +Cc: linux-mips

On Thu, 30 Jan 2003 14:45:43 -0800 (PST), 
Long Li <long21st@yahoo.com> wrote:
>I am having a problem with intermixing the C source
>code in the disassembly. I am using a MIPS
>crosscompiler on Redhat 7.1, gcc-3.0.4,
>binutils-2.11.2. When I compiled the C code, I added
>the -g option, and then use 'objdump -Sd' to get the
>disassembly. However, I did not see any C code mixed
>with the assembly, as said in the objdump manual when
>using -S option. Could you give me some help or
>suggestions? 

objdump -S only works when the code is compiled with -g.  And sometimes
not even then, objdump -S is flaky for ia64, although that could be the
old gcc/binutils I have to use :(.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-31  0:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-30 22:45 How to get the c source code in disassembly? Long Li
2003-01-31  0:27 ` Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox