
16 May
2006
16 May
'06
12:32 p.m.
Joel de Guzman wrote:
I hope g++ will catch up! See Dan's post regarding some Fusion speed tests. g++ produces the fattest and slowest code :( I wish I was using incorrect flags or I haven't found the best compiler switches to use for g++.
Don't know if it helps, but GCC has some optimization hints: // no side effects, may work on memory passed in through pointers // and may read globals int __attribute__((__pure__)) func(int); // no side effects, may neither access memory passed in through // pointers nor globals int __attribute__((__const__)) func(int); // always inline int __attribute__((__always_inline__)) func(int); Regards, Tobias