The following table lists the command line options GPC understands in addition to those understood by GCC.
--debug-tree
--debug-gpi
--debug-automake
--debug-source
--no-debug-source
--no-debug-info
-g
options (temporary work-around, this option may disappear in the future).
--progress-messages
--no-progress-messages
--progress-bar
--no-progress-bar
--automake-gpc
--automake-gcc
--automake-g++
--amtmpfile
--autolink
{$L ...}
(default).
--no-autolink
{$L ...}
.
--automake
{$L ...}
files and link the object files provided.
--no-automake
--no-autolink
.
--autobuild
{$L ...}
files and link the object files provided.
--no-autobuild
--no-autolink
.
--maximum-field-alignment
pack-struct
is in effect.
--ignore-packed
packed
in the source code (default in --borland-pascal
).
--no-ignore-packed
packed
in the source code (default).
--ignore-garbage-after-dot
.
(default in --borland-pascal
).
--no-ignore-garbage-after-dot
.
(default).
--extended-syntax
--ignore-function-results --pointer-arithmetic --cstrings-as-strings -Wno-absolute
(same as {$X+}
).
--no-extended-syntax
--extended-syntax
(same as {$X-}
).
--ignore-function-results
--no-ignore-function-results
--pointer-arithmetic
--no-pointer-arithmetic
--cstrings-as-strings
--no-cstrings-as-strings
-Wabsolute
absolute
variable with non-constant addresses (default).
-Wno-absolute
absolute
variable with non-constant addresses (default).
--short-circuit
{$B-}
).
--no-short-circuit
{$B+}
).
--mixed-comments
{ ... *)
as required in ISO Pascal (default in ISO 7185/10206 Pascal mode).
--no-mixed-comments
{
and }
within (* ... *)
comments and vice versa (default).
--nested-comments
{ { } }
and (* (* *) *)
.
--no-nested-comments
--delphi-comments
//
comments (default).
--no-delphi-comments
//
comments.
--macros
--no-macros
--ucsd-pascal
, --borland-pascal
or --delphi
).
--truncate-strings
--no-truncate-strings
--exact-compare-strings
--no-exact-compare-strings
--double-quoted-strings
--no-double-quoted-strings
--mac-pascal
).
--longjmp-all-nonlocal-labels
longjmp
for all nonlocal labels.
--no-longjmp-all-nonlocal-labels
longjmp
only for nonlocal labels in the main program (default).
--io-checking
{$I+}
) (default).
--no-io-checking
{$I-}
).
--range-checking
{$R+}
) (default).
--no-range-checking
{$R-}
).
--stack-checking
{$S+}
).
--no-stack-checking
{$S-} (default)
).
--read-base-specifier
n#
(default).
--no-read-base-specifier
n#
(default in ISO 7185 Pascal).
--read-hex
$
(default).
--no-read-hex
$
(default in ISO 7185 Pascal).
--read-white-space
--no-read-white-space
--write-clip-strings
Write (SomeLongString : 3)
).
--no-write-clip-strings
--write-real-blank
--no-write-real-blank
--write-capital-exponent
E
.
--no-write-capital-exponent
e
.
--transparent-file-names
--no-transparent-file-names
--field-widths
--no-field-widths
--pedantic
--no-pedantic
--typed-address
{$T+}
, default).
--no-typed-address
{$T-}
).
--enable-keyword
--disable-keyword
--assertions
--no-assertions
--setlimit
set of Integer
etc..
--gpc-main
main
).
--propagate-units
--no-propagate-units
--interface-only
.gpi
file, no .o
file.
--implementation-only
--executable-file-name
--unit-path
--no-unit-path
--object-path
--no-object-path
--executable-path
--no-executable-path
--unit-destination-path
--no-unit-destination-path
--object-destination-path
--no-object-destination-path
--no-default-paths
--gpi-destination-path
--uses
uses
clause.
--init-modules
--cidefine
--csdefine
--big-endian
--little-endian
--print-needed-options
-Wwarnings
{$W+}
).
-Wno-warnings
{$W-}
).
-Widentifier-case-local
-Wno-identifier-case-local
-Wno-identifier-case
.
-Widentifier-case
-Wno-identifier-case
-Winterface-file-name
-Wno-interface-file-name
--methods-always-virtual
--mac-pascal
).
--no-methods-always-virtual
-Wimplicit-abstract
abstract
contains an abstract method (default).
-Wno-implicit-abstract
declared
abstract contains an abstract method.
-Winherited-abstract
-Wno-inherited-abstract
-Wobject-assignment
-Wno-object-assignment
--borland-pascal
).
-Wimplicit-io
Input
or Output
are used implicitly.
-Wno-implicit-io
Input
or Output
are used implicitly (default).
-Wfloat-equal
=
and <>
comparisons of real numbers.
-Wno-float-equal
=
and <>
comparisons of real numbers.
-Wtyped-const
-Wno-typed-const
-Wnear-far
near
or far
directives (default).
-Wno-near-far
near
or far
directives.
-Wunderscore
-Wno-underscore
-Wsemicolon
then
, else
or do
(default).
-Wno-semicolon
then
, else
or do
.
-Wlocal-external
external
declarations.
-Wno-local-external
external
declarations.
-Wdynamic-arrays
-Wno-dynamic-arrays
-Wmixed-comments
{ ... *)
.
-Wno-mixed-comments
-Wnested-comments
{ { } }
.
-Wno-nested-comments
--classic-pascal-level-0
--standard-pascal-level-0
--classic-pascal-level-0
.
--classic-pascal
--standard-pascal
--classic-pascal
.
--extended-pascal
--object-pascal
--ucsd-pascal
--borland-pascal
--delphi
--pascal-sc
--vax-pascal
--sun-pascal
--mac-pascal
--gnu-pascal