[erlang-questions] Question about the VM

Anthony Ramine n.oxyde@REDACTED
Wed Sep 24 12:40:12 CEST 2014


Did you try targeting Core Erlang first? Which primitives do you want to access in BEAM?

There are 1024 X registers, and Y registers are used for locals in functions, to save them when calling other functions.

You can find such information by reading the source code or various talk slides made by the OTP team these last years, but I can't help you find the links right now.

Regards,

Le 24 sept. 2014 à 04:40, Samuel Barney <samjbarney@REDACTED> a écrit :

> I'm developing a language on top of the Erlang VM, and there are a couple of flow-control constructs that I can't implement without skipping the Erlang AST and using the erlang assembly code.
> 
> Is there a specific amount of X and Y registers? Or is there a way that I can find that out via Erlang?
> 
> Also, what is the purpose of the Y registers?
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list