path: root/README
diff options
Diffstat (limited to 'README')
1 files changed, 17 insertions, 2 deletions
diff --git a/README b/README
index 08fa293..3d3a774 100644
--- a/README
+++ b/README
@@ -8,6 +8,9 @@ Dependencies:
- pycparser -
- PLY (Python Lex-Yacc) -
+- cpp - a C preprocessor
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
@@ -16,7 +19,15 @@ the ply/ directory into the directory containing pp2cc. pp2cc is a console
program, you need to open a terminal (or cmd on Windows) to see compiler
-Usage: python [options] filename..
+The cpp program is installed on most Linux distributions. If not, install a
+conforming cpp, say gcc (GNU C Compiler). On Windows, you might want to
+download mcpp from Put it in your %PATH% (or the
+directory containing pp2cc) and rename it to "cpp.exe". If you do not install
+a C preprocessor, you need to pass the --no-cpp option in order to skip the
+processing through cpp. You will not be able to use comments or macros in this
+Usage: [options] filename..
Multiple input files can be specified, options can be specified before and
after filenames.
@@ -25,6 +36,10 @@ Options:
--tree Instead of compiling the file into assembly, show the parse
+ -D name
+ -D name=definition This option is passed to the cpp program, and acts like
+ adding #define name or #define name definition respectively
+ --no-cpp Disable the use of the C Preprocessor
Conformance with the K&R interpretation of C and feature support
@@ -118,4 +133,4 @@ Not supported by parser, use a dedicated preprocessor like cpp and enable
removal of comments. Example: cpp -P file.c
A13 Grammar
-Not checked \ No newline at end of file
+Not checked