linux-mips
[Top] [All Lists]

Re: How to get the c source code in disassembly?

To: Long Li <long21st@yahoo.com>
Subject: Re: How to get the c source code in disassembly?
From: Keith Owens <kaos@sgi.com>
Date: Fri, 31 Jan 2003 11:27:34 +1100
Cc: linux-mips@linux-mips.org
In-reply-to: Your message of "Thu, 30 Jan 2003 14:45:43 -0800." <20030130224543.7903.qmail@web40414.mail.yahoo.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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 :(.


<Prev in Thread] Current Thread [Next in Thread>