Erlang Central

A Guide To The Erlang Source

Revision as of 17:55, 19 August 2009 by Zghst (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A guide to the erlang source.

Contents

Download

The source can be downloaded from: http://erlang.org/download.html

Tree.

Most of the interesting code is in: erts/emulator/beam

Atoms.

The atoms used in erlang are listed in erts/emulator/beam/atom.names and are referenced in the code as am_foo. So the 'EXIT' atom is am_EXIT in the code.

Scheduler

The process struct is defined in erts/emulator/beam/process.h. The important function is Process *schedule(Process *p, int calls). The next process is picked in "pick_next_process" of that method.