[erlang-questions] Erlang + LLVM

James Hague james.hague@REDACTED
Wed Feb 3 03:29:04 CET 2010

> I am suggesting LLVM could be used to compile BEAM bytecode to native code,
> enabling faster execution.  I'm aware HiPE already offers native code
> compilation.

Another odd idea is to use LLVM to generate the main loop of the BEAM
interpreter itself. The current interpreter is reliant on hacky gcc
extensions (well okay, it works without them but is much slower).
Years ago I wanted to rewrite the BEAM main loop directly in x86
assembly to see if an optimization opportunities presented
themselves--what a pain!


More information about the erlang-questions mailing list