From 4e39a4203cc2b1bbd86a35417a087cdb6f9ce4d1 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sun, 27 Nov 2011 15:55:20 +0000 Subject: Updated pp2cc README --- README | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'README') diff --git a/README b/README index 1a4133d..17e5c18 100644 --- a/README +++ b/README @@ -11,16 +11,14 @@ 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. +(or cmd on Windows) to see compiler messages. -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 +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. -- cgit v1.2.1