Difference between revisions of "Spcomp switches"

From AlliedModders Wiki
Jump to: navigation, search
(SourcePawn Compiler Switches Version 1.9.0)
(Undo revision 10483 by Headline (talk))
Line 1: Line 1:
== SourcePawn Compiler Switches Version 1.9.0 ==
+
== SourcePawn Compiler Switches Version 1.3.1 ==
  
SourcePawn Compiler 1.9.0.6154
+
SourcePawn Compiler 1.3.1
Copyright (c) 1997-2006 ITB CompuPhase
+
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC
Copyright (c) 2004-2017 AlliedModders LLC
+
Usage:  spcomp <filename> [filename...] [options]
 
+
Options:
Usage:  spcomp <filename> [filename...] [options]
+
        -A<num>  alignment in bytes of the data segment and the stack
 
 
Options:
 
 
         -a      output assembler code
 
         -a      output assembler code
 
         -c<name> codepage name or number; e.g. 1252 for Windows Latin-1
 
         -c<name> codepage name or number; e.g. 1252 for Windows Latin-1
Line 13: Line 11:
 
         -e<name> set name of error file (quiet compile)
 
         -e<name> set name of error file (quiet compile)
 
         -H<hwnd> window handle to send a notification message on finish
 
         -H<hwnd> window handle to send a notification message on finish
        -h      show included file paths
 
 
         -i<name> path for include files
 
         -i<name> path for include files
 
         -l      create list file (preprocess only)
 
         -l      create list file (preprocess only)
Line 21: Line 18:
 
             2    full optimizations
 
             2    full optimizations
 
         -p<name> set name of "prefix" file
 
         -p<name> set name of "prefix" file
 +
        -r[name] write cross reference report to console or to specified file
 +
        -S<num>  stack/heap size in cells (default=4096)
 
         -s<num>  skip lines from the input file
 
         -s<num>  skip lines from the input file
 
         -t<num>  TAB indent size (in character positions, default=8)
 
         -t<num>  TAB indent size (in character positions, default=8)
 
         -v<num>  verbosity level; 0=quiet, 1=normal, 2=verbose (default=1)
 
         -v<num>  verbosity level; 0=quiet, 1=normal, 2=verbose (default=1)
 
         -w<num>  disable a specific warning by its number
 
         -w<num>  disable a specific warning by its number
         -E      treat warnings as errors
+
         -X<num>  abstract machine size limit in bytes
 +
        -XD<num> abstract machine data/stack size limit in bytes
 
         -\      use '\' for escape characters
 
         -\      use '\' for escape characters
 
         -^      use '^' for escape characters
 
         -^      use '^' for escape characters
         -;<+/-> require a semicolon to end each statement (default=-)
+
         -;[+/-] require a semicolon to end each statement (default=-)
 
         sym=val  define constant "sym" with value "val"
 
         sym=val  define constant "sym" with value "val"
 
         sym=    define constant "sym" with value 0
 
         sym=    define constant "sym" with value 0
 
+
Options may start with a dash or a slash; the options "-d0" and "/d0" are
Options may start with a dash or a slash; the options "-d0" and "/d0" are
+
equivalent.
equivalent.
+
Options with a value may optionally separate the value from the option letter
 
+
with a colon (":") or an equal sign ("="). That is, the options "-d0", "-d=0"
Options with a value may optionally separate the value from the option letter
+
and "-d:0" are all equivalent.
with a colon (":"), an equal sign ("="), or a space (" "). That is, the options "-d0", "-d=0",
 
"-d:0", and "-d 0" are all equivalent. "-;" is an exception to this and cannot use a space.
 

Revision as of 03:08, 27 November 2017

SourcePawn Compiler Switches Version 1.3.1

SourcePawn Compiler 1.3.1
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC
Usage:   spcomp <filename> [filename...] [options]
Options:
        -A<num>  alignment in bytes of the data segment and the stack
        -a       output assembler code
        -c<name> codepage name or number; e.g. 1252 for Windows Latin-1
        -Dpath   active directory path
        -e<name> set name of error file (quiet compile)
        -H<hwnd> window handle to send a notification message on finish
        -i<name> path for include files
        -l       create list file (preprocess only)
        -o<name> set base name of (P-code) output file
        -O<num>  optimization level (default=-O2)
            0    no optimization
            2    full optimizations
        -p<name> set name of "prefix" file
        -r[name] write cross reference report to console or to specified file
        -S<num>  stack/heap size in cells (default=4096)
        -s<num>  skip lines from the input file
        -t<num>  TAB indent size (in character positions, default=8)
        -v<num>  verbosity level; 0=quiet, 1=normal, 2=verbose (default=1)
        -w<num>  disable a specific warning by its number
        -X<num>  abstract machine size limit in bytes
        -XD<num> abstract machine data/stack size limit in bytes
        -\       use '\' for escape characters
        -^       use '^' for escape characters
        -;[+/-]  require a semicolon to end each statement (default=-)
        sym=val  define constant "sym" with value "val"
        sym=     define constant "sym" with value 0
Options may start with a dash or a slash; the options "-d0" and "/d0" are
equivalent.
Options with a value may optionally separate the value from the option letter
with a colon (":") or an equal sign ("="). That is, the options "-d0", "-d=0"
and "-d:0" are all equivalent.