Calculating elements addresses from arrays once

Thu May 20 10:43:00 GMT 2004

Ok thanks.

> My question is : do you think GCC, in this kind of loops, performs a 
> little optimisation by saving somewhere the address of my_array[i] ?

  Yes, gcc should be doing this kind of optimisation; it's a type of CSE.
I'm not sure if -O1 will do it but -O2 certainly ought to.
What do you mean about -01 and -02 ? i use gcc 3.3.3

Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger la 1ère messagerie instantanée de France

More information about the Gcc mailing list