Any BEAM docs?

Bjorn Gustavsson bjorn@REDACTED
Fri Jan 9 18:49:42 CET 2004


Richard Carlsson <richardc@REDACTED> writes:
> 
> The external format used to be described by a document on Björn
> Gustavsson's page, but that link seems to be dead now. (Björn?)
> 

My home page now has the following URL:

http://www.erlang.se/~bjorn/

The file format document only describes the file format;
not the instruction set for Beam.

Some other useful files in OTP:

beam_lib.erl (in stdlib): utilities for reading and writing beam files.

genop.tab (in the compiler): number, name, and number of operands for
 all instructions + some comments.

To disassemble a loaded module to the instructions that are actually
executed, use erts_debug:df(Mod) (a disassembly file will be generated).

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



More information about the erlang-questions mailing list