|
Compilation
Compiling classes and modules that use classes with ECT.
Featured To compile a module that uses the ECT extended syntax, two things are required:
Erlang code pathThis can be specified the same way for Elang shell, and Erlang compiler: erl -pz /path/to/ect/ebin erlc -pz /path/to/ect/ebin something.erl Compiler include pathActually, the directory where ECT is installed is needed to be in the include path. This can be achieved in several different ways:
Exampleserlc -pz /home/bela/tests/etc/ebin -I /home/bela/tests something.erl erl -pz /home/bela/tests/etc/ebin
Erlang R13B01 ...
Eshell V5.7.2 (abort with ^G)
1> c(something, [{i, "/path/to/ectdir"}]).Compiler switches for ECTThese switches can be passed ECT the following two ways: erlc -pz ... -I ... +Switch1 +Switch2 ... something.erl or in the Erlang shell: c(something, [{i, ...}, Switch1, Switch2, ...])The following switches are available:
{verbose, true}
{verbose, false} - default{cctrans, cctrans} - default
{cctrans, cctrans0} - understands only a subset of ECT language, used for bootstrap when compiling ECT{ectheader, "path"}force_boundvar_checks |
► Sign in to add a comment