This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: An unusual Performance approach using Synthetic registers
Marcel Cox wrote:
>Finally, here is a short sample problem which shows that GCC (3.21 tested
>here) is both better and worse than some people think or have claimed in
>this thread:
>
>void touch(void *, void *, void *);
>
>void testinit(void)
>{
> int i=0,j=0,k=0;
> char buffer[256];
>
> touch(&i,&j,&k);
> i+=k;
> touch(&i,&j,&k);
>}
>
>
One question: couldn't the compiler simply elide "buffer", since there
are no references to it?
--
Brane Čibej <brane@xbc.nu> http://www.xbc.nu/brane/