code

code

Module

code

Module summary

Erlang code server.

Description

This module contains the interface to the Erlang code server, which deals with the loading of compiled code into a running Erlang runtime system.

The runtime system can be started in embedded or interactive mode. Which one is decided by command-line flag -mode:

% erl -mode interactive

The modes are as follows:

  • In embedded mode, all code is loaded during system startup according to the boot script. (Code can also be loaded later by explicitly ordering the code server to do so).

  • In interactive mode, which is default, only some code is loaded during system startup, basically the modules needed by the runtime system. Other code is dynamically loaded when first reference