This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Function taking array parameters not inlined ?
- To: aoliva at redhat dot com
- Subject: Re: Function taking array parameters not inlined ?
- From: Joe Buck <jbuck at synopsys dot COM>
- Date: Thu, 2 Aug 2001 11:04:36 -0700 (PDT)
- Cc: David dot Bourguignon at imag dot fr (David Bourguignon), jbuck at synopsys dot com (Joe Buck), gcc at gcc dot gnu dot org
> On Aug 2, 2001, David Bourguignon <David.Bourguignon@imag.fr> wrote:
>
> > No. I don't know how to do this... But I'm willing to learn: what do
> > you use to see assembly code on linux platforms ? (on sgi, there is
> > cvd)
Alexandre writes:
> objdump -d, if you only want to see. gdb/insight if you want to run
> the assembly code step by step.
Oh, come on. Those techniques are for seeing assembly for code you don't
have the source to. In this case, David wants to know why his code is
slow, and he has the source.
Use the -S switch on gcc to get the assembly output. If it's C++, run
the output through c++filt to demangle the symbols.
That is:
gcc -O2 -S mycode.cxx
(replace -O2 by flags of your choice)
c++filt < mycode.s > mycode.s.demangled