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]
Other format: [Raw text]

RE: Calculating elements addresses from arrays once


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 http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France


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