lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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