
18 Jan
2005
18 Jan
'05
4:55 p.m.
"Peter Dimov" <pdimov@mmltd.net> writes:
Alexander Terekhov wrote:
Peter Dimov wrote: [...]
Local static objects can be made safe by the compiler. The new cxx64 API requires it.
Too bad that new cxx64 ABI couldn't mandate a standard #pragma (or something like that) to turn it on/off ("you should not pay for what you don't use" motto, you know).
I actually think that not offering a way to turn it off is somewhat better, long term. Without an option to turn it off, compiler writers are forced to optimize local statics (using DCSI-MBR/DCCI/whatever).
Any compiler writer is free to offer a way to turn it off as an extension. They're also free to not use those optimizations. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com