[Vm-dev] Re: primitiveDigitCompare is slow (was: Re: [squeak-dev] The Inbox: Kernel-dtl.1015.mcz)

Levente Uzonyi leves at caesar.elte.hu
Fri Apr 22 23:06:39 UTC 2016


Hi Eliot,

Unfortunately that's not easily doable, but files compiled without the 
-flto flag will not be subject of link-time optimization. So, one way to 
achieve what you want is to compile the methods in a separate file using 
the -flto flag and the rest in another file without the flag.
This rule applies to every function you want to be subject of link-time 
optimization, let it be the one you want to inline into another function 
or the one you want to inline another function into.
Also, the -flto flag doesn't work well with -g, so it shouldn't be a 
problem during debugging. If that was what you meant by debugging.

You can find the details here: 
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-flto-882

Levente



More information about the Vm-dev mailing list