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

Levente Uzonyi leves at caesar.elte.hu
Wed Apr 20 11:17:21 UTC 2016


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. 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.

Levente



More information about the Vm-dev mailing list