[Vm-dev] VM Maker: VMMaker.oscog-nice.1813.mcz

Eliot Miranda eliot.miranda at gmail.com
Wed Apr 20 15:57:19 UTC 2016


Hi Levente,


> On Apr 20, 2016, at 4:17 AM, Levente Uzonyi <leves at caesar.elte.hu> wrote:
> 
> Hi Nicolas,
> 
> IMHO the best would still be to use macros for as many of these functions as possible.
> The link-time optimization has its limitations, and it will not really work for the VM, at least not the way it could provide speedups comparable to macro use.

+1

> This is because the optimizer won't optimize everything blindly. And since these functions are not used from the main VM code, the optimizer will consider these optimizations unnecessary, which is probably why only the smallest functions were inlined in my experimental compilation.
> However the optimizer probably inlined many other things and removed some cruft as well, because it worked on the whole VM. The size of the resulting binary was 5.1MB instead of the usual 6.3MB.

Interesting.  That's a big win.  Looks like LTO should be adopted as broadly as possible.  Did you run external plugin tests?  Anything broken?

> 
> Levente
> 


More information about the Vm-dev mailing list