SYNOPSIS -==

mad [-c] [-d] [-g] [-I] [-l] [-L] [-o 'target'] [-S] [file…​]

DESCRIPTION

This program is a work of reconstructive archeology, a compiler for the Michigan Algorithmic Decoder (MAD) language from 1962. It first translates MAD code into C, then uses the local C compiler to make an executable binary.

For details on the MAD language, see the MAD reference manual which is shipped with the distribution and available at the project website.

OPTIONS

Options are as follows:

-c

Generate an object file, ".o", for each MAD source file.

-d

Debug. Enables verbose progress messages from parser and lexer.

-o

Specify name of executable output binary; if there is more than one input file the name of the first file is used.

-g

Dump tuples from which code is generated.

-I

Specify name of additional include directories.

-l

Specify name of additional library files.

-L

Specify name of additional library directories.

-S

Generate a 'C' source file, "*.c", for each MAD source file.

When MAD is called as a filter, the generated C is written to standard output as though -c had been used.

WARNING

Because the semantics of MAD assumes an integer occupies a 36-bit word, code generated by this compiler will fail in obscure ways on a 32-bit machine. Code generation assumes that a MAD integer fits in a C long.

AUTHOR

Eric S. Raymond <esr@snark.thyrsus.com>. There is a MAD resource page at http://www.catb.org/~esr/mad.