This is the mail archive of the
mailing list for the GCC project.
Re: Function taking array parameters not inlined ?
- To: Joe Buck <jbuck at synopsys dot com>
- Subject: Re: Function taking array parameters not inlined ?
- From: David Bourguignon <David dot Bourguignon at imag dot fr>
- Date: Thu, 02 Aug 2001 14:53:00 +0200
- CC: gcc at gcc dot gnu dot org
- Organization: iMAGIS
- References: <200108012111.OAA13440@racerx.synopsys.com>
Thanks Joe for your answer.
You said :
> 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);
> 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)
> There could be some compiler bug that is giving slow code in this case,
> but probably no one has had the time to track it down.
But, it's rather annoying: arrays are very useful in C !
> Also, please don't send mail like this to gcc-testresults. That list is
> only for posting results from standard testsuites, like the regression
> tests. It's not for discussions or for posting code examples.
I didn't know that. I apologize for the noise.
Thanks for any help.
Benchmark source code and results at
iMAGIS project, GRAVIR lab
INRIA Rhône-Alpes, 655 avenue de l'Europe
38330 Montbonnot Saint Martin, France