2 # Example ppc386.cfg for Free Pascal Compiler Version 0.99.12
5 # ----------------------
6 # Defines (preprocessor)
7 # ----------------------
10 # nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed
12 # -d is the same as #DEFINE
13 # -u is the same as #UNDEF
16 # When not m68k is defined at the commandline, define i386
22 # Some examples (for switches see below, and the -? helppages)
24 # Try compiling with the -dRELEASE or -dDEBUG on the commandline
27 # For a release compile with optimizes and strip debuginfo
31 #WRITE Compiling Release Version
34 # For a debug version compile with debuginfo and all codegeneration checks on
38 #WRITE Compiling Debug Version
45 # All assembler blocks are intel styled by default
48 # All assembler blocks are AT&T styled by default
52 # -S2 switch some Delphi 2 extension on
53 # -Sc supports operators like C (*=,+=,/= and -=)
54 # -Sg allows LABEL and GOTO
55 # -Si support C++ stlyed INLINE
56 # -Sm support macros like C (global)
57 # -So tries to be TP/BP 7.0 compatible
58 # -Ss constructor name must be init (destructor must be done)
59 # -St allows static keyword in objects
61 # Allow goto, inline, C-operators, C-vars
68 # Uncomment the next line if you always want static/dynamic units by default
69 # (can be overruled with -CD, -CS at the commandline)
73 # Set the default heapsize to 8Mb
76 # Set default codegeneration checks (iocheck, overflow, range, stack)
83 # -Og generate smaller code
84 # -OG generate faster code (default)
85 # -Or keep certain variables in registers (still BUGGY!!!)
86 # -Ou enable uncertain optimizations (see docs)
87 # -O1 level 1 optimizations (quick optimizations)
88 # -O2 level 2 optimizations (-O1 + slower optimizations)
89 # -O3 level 3 optimizations (same as -O2u)
90 # -Op target processor
91 # -Op1 set target processor to 386/486
92 # -Op2 set target processor to Pentium/PentiumMMX (tm)
93 # -Op3 set target processor to PPro/PII/c6x86/K6 (tm)
95 # Optimize always for Size and Pentium
99 # -----------------------
100 # Set Filenames and Paths
101 # -----------------------
103 # Slashes are also allowed under dos
105 # path to the messagefile, not necessary anymore but can be used to override
106 # the default language
107 #-Fr$1/msg/errore.msg
108 #-Fr$1/msg/errorn.msg
110 # searchpath for includefiles
111 #-Fi/pp/inc;/pp/rtl/inc
113 # searchpath for units and other system dependent things
115 #IFDEF FPC_LINK_STATIC
116 -Fu$1/rtl/go32v1/static
117 -Fu$1/units/go32v1/static
123 #IFDEF FPC_LINK_STATIC
124 -Fu$1/rtl/go32v2/static
125 -Fu$1/units/go32v2/static
131 #IFDEF FPC_LINK_STATIC
132 -Fu$1/rtl/win32/static
133 -Fu$1/units/win32/static
139 #IFDEF FPC_LINK_STATIC
141 -Fu$1/units/os2/static
147 # For statically, smartlinked units
148 #IFDEF FPC_LINK_STATIC
149 -Fu$1/rtl/linux/static
150 -Fu$1/units/linux/static
152 # For Dynamically linked units
153 #IFDEF FPC_LINK_DYNAMIC
154 -Fu$1/rtl/linux/shared
155 -Fu$1/units/linux/shared
159 #-Fu~/pp/units;~/pp/rtl/linux
160 #-Fu/usr/lib/fpc/0.99.12/units;/usr/lib/fpc/0.99.12/rtl
163 # searchpath for libraries
173 # generate always debugging information for GDB (slows down the compiling
177 # always pass an option to the linker
180 # Always strip debuginfo from the executable
188 # Write always a nice FPC logo ;)
192 # e : Show errors (default) d : Show debug info
193 # w : Show warnings u : Show used files
194 # n : Show notes t : Show tried files
195 # h : Show hints m : Show defined macros
196 # i : Show general info p : Show compiled procedures
197 # l : Show linenumbers c : Show conditionals
198 # a : Show everything 0 : Show nothing (except errors)
200 # Display Info, Warnings, Notes and Hints
203 # If you don't want so much verbosity use