A DIY C Compiler using LCC

Fast Track

Create a Working Directory

Create a working directory to use LCC within. Unzip the files here to that directory.

Get the LCC Compiler

Download and unzip Quake 3 Source "quake3-1.32b-source.zip" to a temporary directory.

ftp://ftp.idsoftware.com/idstuff/source/quake3-1.32b-source.zip

and available elsewhere via http ( Search Google ).

Get the LCC Compiler Compenents

Locate the following sub-directory and files ...

    X:\ ... \quake3-1.32b\code\win32\mod-sdk-setup\bin

    Q3CPP    EXE       159,801  10-05-02 12:07p q3cpp.exe
    Q3RCC    EXE       847,929  10-05-02 12:07p q3rcc.exe

Copy those two files to the working directory.

Compiling

Create a C program, for example "TestCode.c", in the working dirctory and compile with ...

    COMPILE TestCode /TEST   or
    COMPILE TestCode /DEBUG
This creates TestCode.Spin which is the C-bytecode and interpreter which will run on the Propeller Chip.