[erlang-questions] potential compiler improvement?

Björn Gustavsson <>
Tue Oct 27 18:37:43 CET 2009


On Tue, Oct 27, 2009 at 5:58 PM, James Hague <> wrote:

> In C--and HiPE--perhaps the times are the same, but I was thinking
> about threaded BEAM code where unpacking the additional three values
> involves three more BEAM instructions (assuming those aren't collapsed
> into one super-instruction at load time).

They *are* collapsed into super-instructions. Not one, but three for your test
program.

You can see it if you do

erts_debug:df(Mod)

(The disassemlbly willl appear in Mod.dis)

/Bjorn
-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB


More information about the erlang-questions mailing list