Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2006-05-16 08:32:31

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);



Boost list run by bdawes at, gregod at, cpdaniel at, john at