Translation from Object Icon source files to intermediate .u files is done by the program oit.

Input source files should have the suffix .icn. To translate one or more files, invoke oit as follows :-

oit -c file1.icn file2.icn ...

This will produce file1.u, file2.u etc.


The oit program is also used to link .u files together to form an executable file that can be run :-

oit -o prog file1.u file2.u ...

You can also go directly from the source file to the executable if you wish. In this case the intermediate .u files are deleted. For example :-

oit myprog.icn

Translates and links myprog.icn into an executable myprog.

Command line options

oit accepts the following command-line options :-


The runtime system is contained in the program oix. It is not normally necessary to run that directly because the executable built by oit invokes it automatically.

oix can be invoked by oit by appending -x to the command line (followed by any desired runtime arguments). For example

oit myprog.icn -x

translates, links and runs myprog.icn. The executable file myprog is not deleted after completion (unlike the intermediate .u file). Note that if the current directory (".") is not on your PATH variable, you need to enter

oit ./myprog.icn -x