summaryrefslogtreecommitdiff
path: root/README
blob: 17e5c185366d9707bbb11b4c7dc0113ceaef2d4f (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
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 compiler messages.

Usage: python pp2cc.py [options] filename..
Multiple input files can be specified, options can be specified before and
after filenames.
Options:
    -o filename     The name of the output file. It defaults to the first
                    input file from which the extension is removed, and .asm is
                    added.
    --tree          Instead of compiling the file into assembly, show the parse
                    tree.