stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <>
Subject Re: svn commit: r574015 - /incubator/stdcxx/trunk/etc/config/windows/projectdef.js
Date Mon, 10 Sep 2007 18:01:25 GMT
Farid Zaripov wrote:
>> -----Original Message-----
>> From: Martin Sebor [] 
>> Sent: Monday, September 10, 2007 6:35 PM
>> To:
>> Subject: Re: svn commit: r574015 - 
>> /incubator/stdcxx/trunk/etc/config/windows/projectdef.js
>> wrote:
>>> Author: faridz
>>> Date: Sun Sep  9 06:57:32 2007
>>> New Revision: 574015
>>> URL:
>>> Log:
>>> 2007-09-09 Farid Zaripov <>
>>> 	* projectdef.js (projectCreateVCProject): Enable using of the
>>> 	intrinsic functions in release builds.
>> Unless it's obvious, it's helpful to say why a change was made.
>> You might know why now and some of the rest of us who read 
>> the list might be able to guess (to enable the Interlocked functions,
>> right?) but others who just read the ChangeLog may not.
>   No. The Interlocked functions will be intrinsic in all builds, because
> of
> presence of the #pragma intrinsic (Interlockedxxx) in _mutex.h
>   The purpose of this patch is enable using of some CRT functions
> (memcmp, memcpy, memset, ...) as intrinsic in release builds.
> The full list of intrinsic CRT functions here:
>   But now I can say, that this patch is useless. The projects in
> release builds are compiled with /O1 optimization,

According to MSDN, /O1 optimizes for minimum size. That's not
what we typically target and it's different from the default
setting of /O2 used by the IDE for release builds which does
include /Oi.

> which not includes
> /Oi option. And setting of the EnableIntrinsicFunctions property to true
> doesn't leads to compiling with /Oi option unless /O1 or /O2 options
> are not specified. So we should append /Oi to the command line manually
> (using AdditionalOptions property) to enable using of CRT functions
> as intrinsic (or use /O2 optimization, because /O2 implies /Oi).

Why not use /O2?


View raw message