[Vm-dev] Re: Compiler Optimization in the different CMakeConfigs

Mariano Martinez Peck marianopeck at gmail.com
Wed Apr 20 23:22:37 UTC 2011


On Wed, Apr 20, 2011 at 9:25 PM, Eliot Miranda <eliot.miranda at gmail.com>wrote:

>
>
>
> On Tue, Apr 19, 2011 at 2:19 PM, Mariano Martinez Peck <
> marianopeck at gmail.com> wrote:
>
>>
>> Sorry, I forgot to say..and for the "debug" release, Unix and Windows use
>> -O1 instead of -O1 which is the one used by Mac confs...is this correct?
>>
>> Is it safe to debug using -O1 instead of -O0?
>>
>
> No.  If you want to be able to debug everything reliably then you need to
> use -O0.
>
>

Yes, exactly. That's why I asked. Some debug confs in CMakeVMMaker  have -O1
... so I will change them to -O0.
Thanks Eliot


>
>> thanks
>>
>> Mariano
>>
>> On Tue, Apr 19, 2011 at 11:13 PM, Mariano Martinez Peck <
>> marianopeck at gmail.com> wrote:
>>
>>> Hi guys. Unix and Windows confs have -O2. However, in Mac, the Carbon
>>> ones have -O3 y the cocoa ones -Os.
>>> As far as I know -Os is for size, so we really don't care about that
>>> (unless we are in a mobile device). So, is there a reason why Unix and
>>> Windows use -O2 and Mac -O3 ?  should we chage this?  which should we use?
>>>
>>> Thanks in advance,
>>>
>>> --
>>> Mariano
>>> http://marianopeck.wordpress.com
>>>
>>>
>>
>>
>> --
>> Mariano
>> http://marianopeck.wordpress.com
>>
>>
>>
>
>


-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20110421/ee84a2a1/attachment.htm


More information about the Vm-dev mailing list