summaryrefslogtreecommitdiff
path: root/README
blob: 1a4133d456070ddbe08e8458f6c409c2ed65f181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pp2cc is a C compiler for the PP2 Practicum Processor. It generates assembly
from C code. Currently, pp2cc is licensed under a proprietary license, but
this may change in the future.

Depedencies:

- Python - http://python.org/download/
- pycparser - http://code.google.com/p/pycparser/

Python is often installed by default on Linux distributions. For Windows, you
probably need to run the installer from the above link. Extract the pycparser
ZIP file (see link above) and copy the pycparser subdirectory to the directory
containing pp2cc.py. pp2cc is a console program, you need to open a terminal
(or cmd on Windows) to see the output.

Currently, no file is written. All errors and compiled code go to stdout. This
will be fixed later.

Usage (subject to change)
=========================
Compile a program:

    python pp2cc.py file.c
Show the syntax tree (debugging, will be removed):

    python pp2cc.py file.c show