This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Function taking array parameters not inlined ?



> > 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.


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