Next: , Previous: Reference, Up: Reference


7.1 Command Line Options

     Usage: pcc [options] <input-files> [-- script args]
     see pcc -h for help with command line options
     
     
     Help:
        -h,--help                      This help message
        -v                             Verbose output
        --version                      Current version information
     
     Run Mode (default: compile console application):
        -a                             Interactive PHP mode (PHP REPL)
        -i,-f,--interpret SCRIPT       Execute code immediately, instead of compiling
        --fastcgi,--cgi FASTCGI-NAME   Generate stand alone FastCGI application (also runs as normal CGI)
        -s,--microserver SERVER-NAME   Generate stand alone MicroServer application
        --gui                          Generate desktop GUI application (PHP-GTK)
        -l,--library-mode LIBRARY-NAME Generate a library
     
     Compiler Options:
        -c CONFIG-FILE                 Use the specified config file
        --static                       Generate optimized statically linked binary
        -O,--optimize                  Generate optimized dynamically linked binary
        -m,--make-file FILE            Build using specified project make file
        -u,--use LIB-NAME              Use specified PCC library (created with -l) when compiling and linking
        -o,--output-file FILE          The output file
        -I,--include-path DIR          Add a directory to the include file search path
        -L,--library-path LIB-PATH     Add lib-path to library search path
        --bopt STRING                  Invoke bigloo (scheme compiler) with STRING
        --copt STRING                  Invoke cc (c compiler) with STRING
        --ldopt STRING                 Invoke ld (linker) with STRING
     
     MicroServer Compile Options:
        --port PORT                    Set the default port that the MicroServer should use
     
     Web Application (MicroServer/FastCGI) Compile Options:
        --default-index INAME          Set the default index page [default: index.php]
        --not-found INAME              Set the default not found page [default: 404.php]
     
     PHP-GTK Compile Options:
        --resource FILE                Compile and use the specified windows resource file
     
     Library Related Options (requires -l, --fastcgi, or --microserver):
        --strip-path STRIP-PATH        Strip leading path from source files when compiling a library
        --install                      Install library to PCC library directory
        --force-rebuild                Force rebuild of all source files in a library
     
     Debugging:
        -d,--debug-level LEVEL         Set the debug level (0=None/1=Med/2=High)
        --repl                         A scheme REPL with access to the roadsend-php runtime
        -P,--profile                   Generate code for PHP source level profiling
        -R                             Generate code suitable for profiling with gprof/bprof
        --GET GVAR                     Add this key/value pair to _GET superglobal (form: key=val)
        --POST GVAR                    Add this key/value pair to _POST superglobal (form: key=val)
        --COOKIE GVAR                  Add this key/value pair to _COOKIE superglobal (form: key=val)
        --SERVER GVAR                  Add this key/value pair to _SERVER superglobal (form: key=val)
        -rm,--no-clean                 Don't cleanup temporary files
        --dump-pre                     Dump the string produced by the preprocessor
        --dump-toks                    Dump the tokens produced by the main lexer
        --dump-ast                     Dump the syntax tree produced by the parser
        --dump-types                   Dump the syntax tree produced by the parser, after type inference