[VSDK] Framework prebinding

Eric Forget forgete at cafederic.com
Fri Dec 5 14:29:20 CST 2003


>> Fastest: Turns on all optimizations specified by the 'Faster' setting
>> and also turns on function inlining and register renaming options. This
>> setting may result in a larger binary. [-O3]
>> 
>> Fastest, smallest: Optimize for size.  This setting enables all
>> 'Faster' optimizations that do not typically increase code size.  It
>> also performs further optimizations designed to reduce code size. [-Os]
>> 
>> Fastest IS faster...

Not always. That's the problem. Some of the Fastest optimizations, in some
circumstance, may not increase speed but will increase size, which has the
effect of decreasing speed: because of less use of level 1, 2, and 3
processor caches. Increasing the size of the code for a PowerPC could
dramatically decrease the speed.

That why Apple says about Fastest, smallest: "Performs all optimizations
that do not typically increase code size. This is the preferred option for
shipping code as it gives your executable a smaller memory footprint."

However, all depends on how you wrote your code. The best approach is to
benchmark both. That way we will be sure to use the best option with the
current code base...

Éric

___________________________________________________________________

 Eric Forget                       Cafederic
 ForgetE at cafederic.com             <http://www.cafederic.com/>

 Fingerprint <86D5 38F5 E1FD 5D9C 71C3  BAA3 797E 70A4 6210 C684>




More information about the Valentina mailing list