NAME

oadlc - OADL compiler

SYNOPSIS

oadlc [flags] filenames

The [flags] are zero or more of:

-v
verbose - print stack trace on error
-g
generate debugging information
-s
strip all symbolic information from executable
-o file
name of output file (default is "a.oax")
-x
exchange bytes - write .oax in non-native byte order
-lLIB
loads libLIB.oax from the OADL library path
-Ldir
adds dir to the library search path
-Idir
adds dir to the include search path

The filenames are one or more source files (with a suffix of ".oad") or executable files (with a suffix of ".oax"). At least one filename must be provided. The [flags] and filenames may be interleaved.

DESCRIPTION

oadlc is the OADL compiler. It will compile an OADL program to a format that may be later executed with oadlx or debugged with oadldb.

Full documentation of the OADL language may be found at http://rcunniff.com/OADL/oadl.html. Sample OADL test programs may be found at http://rcunniff.com/OADL/Tests/index.html and at http://rcunniff.com/OADL/ADV/index.html.

EXAMPLE

    bash $ cat hello.oad
    proc main()
    {
        "Hello, world!\n";
    }
    bash $ oadlc hello.oad -o hello.oax
    bash $ oadlx hello.oax
    Hello, world!

ENVIRONMENT

The following environment variables are used by oadlc:

OADL_INC
Semicolon-separated list of directories to be searched for #include files
OADL_LIB
Semicolon-separated list of directories to be searched for .oax files specified via the -l option

SEE ALSO

oadlc
oadlx
oadldb
oadldump