• The Core Erlang[1][2] is a functional language simpler than Erlang used by the compiler to make easier to apply code transformations and optimizations to the original code. To generate a .core file run:

erlc +\'to_core\' <file.erl>
  • The assembly code[3] is used in the final stage by the compiler to produce the bytecode that BEAM will execute. To generate a .S file run:

erlc +\'S\' <file.erl>
References
  • [1] Core Erlang 1.0.3 language specification.

  • [2] An introduction to Core Erlang.

  • [3] Erlang compile module documentation.