This is the mail archive of the gcc-bugs@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]

Optimisation Problem


hello there... i am trying my hands on gcc optimisations options.
i tried e.g. -finline-functions, -funroll-loops and the likes but none
worked for me
for ex. i tried -funroll-loops for code
for (int i = 0; i < 3; ++i)
  a[i] = i;

which should unroll like
a[0] = 0
a[1] = 1
a[2] = 2
but it didn't seem to happen. Is this a bug or something?
please help me write good test case or suggest some. i am using gcc
4.1.2. tried 5.4.2 also on rhel5

Best Regards
-- 
View this message in context: http://old.nabble.com/Optimisation-Problem-tp31332686p31332686.html
Sent from the gcc - bugs mailing list archive at Nabble.com.


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