The IC application is an Erlang implementation of an IDL compiler. Several back-ends are supported. The IDL compiler generates server behaviors and client stubs according to the IDL-to-Erlang mapping. Interface inheritance is supported. The compiler also performs a limited subset of the IDL semantic checks.
Six back-ends are currently supported:
While the first back-end (IDL to Erlang CORBA) is intended for pure CORBA functionality, the rest are specially designed to allow portable and efficient links between different languages and virtual machines.
The compiler is used by calling ic:gen/1
or ic:gen/2
functions
in an Erlang shell:
ic:gen/1
is used to compile files with only default settings.
ic:gen/2
is used to compile files with an additional option list.
Example compiling a file example.idl
:
default
back-end.
1> ic:gen(example). Erlang IDL compiler version 2.5.1 ok 2>
1> ic:gen(example,[{be,erl_genserv}]). Erlang IDL compiler version 2.5.1 ok 2>
There are a number of compiler options available to the user, which can be configured by either:
ic:gen/2
.
Please read the manual page for information about valid options and use of the configuration file.