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: David dot Bourguignon at imag dot fr (David Bourguignon)
- Subject: Re: Function taking array parameters not inlined ?
- From: Joe Buck <jbuck at synopsys dot COM>
- Date: Thu, 2 Aug 2001 11:07:31 -0700 (PDT)
- Cc: jbuck at synopsys dot com (Joe Buck), gcc at gcc dot gnu dot org
> > I am puzzled. First off, there is no such thing as an array parameter
> > in C or C++. If you pass an array to a function, you pass a pointer
> > to the first element.
>
> I agree entirely. What I meant was this kind of parameter :
> void function(double a[3]);
This is processed in the same way as
void function(double* a);
> > Second, are you sure that the reason for the
> > slowdown is that a function is not inlined? Have you looked at the
> > assembly code?
>
> 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)
Use the -S flag to gcc to get assembly output.