Skip to content

Routemap source tree

thijsterlouw edited this page Sep 13, 2010 · 20 revisions

Erlang OTP is a complex system. It can be a bit hard to find out where to look if you want to know the details of some implementation. This page is a simple routemap to the interesting parts of the Erlang OTP source code. With ‘interesting’ I mean for users who are interested in the internal workings of Erlang for example for performance reasons and networking.

  1. erts – Erlang Run-Time System Application.This tree includes the virtual machine, the garbage collector, and the port mapper daemon.
    1. emulator
      1. beam – Erlang’s Beam VM: contains .c and .h files such as: erl_process.c, beam_emu.c, erl_driver.h, io.c, bif.c and erl_bif_port.c, erl_alloc.c (doc)
      2. drivers/common/ – inet_drv.c
      3. hipe – Erlang’s native code compiler. Interaction between Beam and Native code
    2. epmd – Erlang Port Mapper Daemon
    3. preloaded/src/ – prim_inet.erl
  2. lib – contains lots of applications written in Erlang code
    1. kernel/src/ – application.erl, gen_tcp.erl, heart.erl, inet.erl
    2. stdlib/src/ – array.erl, dict.erl, ets.erl, gen_server.erl io.erl, timer.erl, unicode.erl and lots more

Note: feel free to edit and point out more interesting parts of the source code.

Clone this wiki locally