[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.3 (rc1) now available
- From: Coda Highland <chighland@...>
- Date: Sun, 8 Dec 2013 11:30:05 -0800
On Sun, Dec 8, 2013 at 10:01 AM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> > Now if the result was larger, that would be a surprise.
>>
>> It is larger in Mac OS X...
>
> With all functions in a single file, the compiler has more opportunities
> for inlining calls.
>
> -- Roberto
>
Apple recommends the use of -Os instead of -O2 in general anyway; in
Apple's compilers, -Os means basically "-O2, except for optimizations
that would make the binary larger". (If you want "always generate the
smallest possible code" that's -Oz.) The claim is that the smaller
code size improves loading time and cache locality to result in a more
responsive application.
/s/ Adam