IOCCC image by Matt Zucker

The International Obfuscated C Code Contest

1990/dds - Best language tool

basic interpreter that is heavily compressed

Author:

To build:

    make all

To use:

    ./dds

Try:

Give the following lines as input:

    OLD LANDER.BAS
    RUN

NOTE: this entry is probably one of the only times CAPS LOCK might be worth having (though still not useful enough to enable :-) ) as all input has to be UPPER CASE.

Judges’ remarks:

Be sure not to run out of fuel!

Author’s remarks:

This is the DDS-BASIC Interpreter (Version 1.00).

Immediate commands:

Program commands:

Expressions (ranked by precedence):

(* and + are also used for boolean AND and boolean OR)

Boolean expressions evaluate to 0 for false and 1 for true.

Editing:

Input format:

Limits:

Error checking / error reports:

No error checking is performed. It might dump core if a syntax or semantic error is encountered.

Hosting Environment:

ANSI C, traditional K&R C or OSF ANDF ASCII or EBCIDIC character set 48K bytes memory.

The Speed of DDS-BASIC Interpreter (Version 1.00) relative to Microsoft Advanced BASIC 3.31 is approximately 60%.

The code size could be further reduced by doing ugly things like not declaring the return type of functions, not freeing memory, defining define, and joining lines. In its present 1536 character form the program is reasonably portable (it may fail to run in a tagged object architecture) and nicely formatted (it fits in an 80*25 screen).

Inventory for 1990/dds

Primary files

Secondary files


Jump to: top