Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-11-13 10:08:01

Valentin Samko <boost_at_[hidden]> writes:

> RN> Do you have specific advice/experience for Linux's g++ that might improve or
> RN> explain what we're seeing here?
> g++ does NRVO, which some popular optimising compilers (like VC++ 7.1)
> do not do. In my experience, some programs compiled with g++ are
> noticeably faster than when compiled with vc++ 7.1, mainly due to the
> NRVO. Afaik, NRVO it not implemented in VC++ 7.1 because it conflicts
> with the current C++ standard (3.7.2).

What makes you think it conflicts with the C++ standard?

Anyway, nothing you can say in favor of G++'s optimization
capabilities will help the OP improve or explain the slowdowns he's
seeing, will it?

Dave Abrahams
Boost Consulting

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