]>
Commit | Line | Data |
---|---|---|
98ff8f75 AM |
1 | # |
2 | # Example ppc386.cfg for Free Pascal Compiler Version 0.99.12 | |
3 | # | |
4 | ||
5 | # ---------------------- | |
6 | # Defines (preprocessor) | |
7 | # ---------------------- | |
8 | ||
9 | # | |
10 | # nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed | |
11 | # | |
12 | # -d is the same as #DEFINE | |
13 | # -u is the same as #UNDEF | |
14 | # | |
15 | ||
16 | # When not m68k is defined at the commandline, define i386 | |
17 | #IFNDEF m68k | |
18 | #DEFINE i386 | |
19 | #ENDIF | |
20 | ||
21 | # | |
22 | # Some examples (for switches see below, and the -? helppages) | |
23 | # | |
24 | # Try compiling with the -dRELEASE or -dDEBUG on the commandline | |
25 | # | |
26 | ||
27 | # For a release compile with optimizes and strip debuginfo | |
28 | #IFDEF RELEASE | |
29 | -OG2p2 | |
30 | -Xs | |
31 | #WRITE Compiling Release Version | |
32 | #ENDIF | |
33 | ||
34 | # For a debug version compile with debuginfo and all codegeneration checks on | |
35 | #IFDEF DEBUG | |
36 | -g | |
37 | -Crtoi | |
38 | #WRITE Compiling Debug Version | |
39 | #ENDIF | |
40 | ||
41 | # ---------------- | |
42 | # Parsing switches | |
43 | # ---------------- | |
44 | ||
45 | # All assembler blocks are intel styled by default | |
46 | #-Rintel | |
47 | ||
48 | # All assembler blocks are AT&T styled by default | |
49 | #-Ratt | |
50 | ||
51 | # Semantic checking | |
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 | |
60 | ||
61 | # Allow goto, inline, C-operators, C-vars | |
62 | -Sgic | |
63 | ||
64 | # --------------- | |
65 | # Code generation | |
66 | # --------------- | |
67 | ||
68 | # Uncomment the next line if you always want static/dynamic units by default | |
69 | # (can be overruled with -CD, -CS at the commandline) | |
70 | #-CS | |
71 | #-CD | |
72 | ||
73 | # Set the default heapsize to 8Mb | |
74 | #-Ch8000000 | |
75 | ||
76 | # Set default codegeneration checks (iocheck, overflow, range, stack) | |
77 | #-Ci | |
78 | #-Co | |
79 | #-Cr | |
80 | #-Ct | |
81 | ||
82 | # Optimizer switches | |
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) | |
94 | ||
95 | # Optimize always for Size and Pentium | |
96 | -OG2p2 | |
97 | ||
98 | ||
99 | # ----------------------- | |
100 | # Set Filenames and Paths | |
101 | # ----------------------- | |
102 | ||
103 | # Slashes are also allowed under dos | |
104 | ||
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 | |
109 | ||
110 | # searchpath for includefiles | |
111 | #-Fi/pp/inc;/pp/rtl/inc | |
112 | ||
113 | # searchpath for units and other system dependent things | |
114 | #IFDEF Go32V1 | |
115 | #IFDEF FPC_LINK_STATIC | |
116 | -Fu$1/rtl/go32v1/static | |
117 | -Fu$1/units/go32v1/static | |
118 | #ENDIF | |
119 | -Fu$1/rtl/go32v1 | |
120 | -Fu$1/units/go32v1 | |
121 | #ENDIF | |
122 | #IFDEF Go32V2 | |
123 | #IFDEF FPC_LINK_STATIC | |
124 | -Fu$1/rtl/go32v2/static | |
125 | -Fu$1/units/go32v2/static | |
126 | #ENDIF | |
127 | -Fu$1/rtl/go32v2 | |
128 | -Fu$1/units/go32v2 | |
129 | #ENDIF | |
130 | #IFDEF Win32 | |
131 | #IFDEF FPC_LINK_STATIC | |
132 | -Fu$1/rtl/win32/static | |
133 | -Fu$1/units/win32/static | |
134 | #ENDIF | |
135 | -Fu$1/rtl/win32 | |
136 | -Fu$1/units/win32 | |
137 | #ENDIF | |
138 | #IFDEF OS2 | |
139 | #IFDEF FPC_LINK_STATIC | |
140 | -Fu$1/rtl/os2/static | |
141 | -Fu$1/units/os2/static | |
142 | #ENDIF | |
143 | -Fu$1/rtl/os2 | |
144 | -Fu$1/units/os2 | |
145 | #ENDIF | |
146 | #IFDEF Linux | |
147 | # For statically, smartlinked units | |
148 | #IFDEF FPC_LINK_STATIC | |
149 | -Fu$1/rtl/linux/static | |
150 | -Fu$1/units/linux/static | |
151 | #ENDIF | |
152 | # For Dynamically linked units | |
153 | #IFDEF FPC_LINK_DYNAMIC | |
154 | -Fu$1/rtl/linux/shared | |
155 | -Fu$1/units/linux/shared | |
156 | #ENDIF | |
157 | -Fu$1/rtl/linux | |
158 | -Fu$1/units/linux | |
159 | #-Fu~/pp/units;~/pp/rtl/linux | |
160 | #-Fu/usr/lib/fpc/0.99.12/units;/usr/lib/fpc/0.99.12/rtl | |
161 | #ENDIF | |
162 | ||
163 | # searchpath for libraries | |
164 | -Fl$GCCDIR | |
165 | #-Fl/pp/lib | |
166 | #-Fl/lib;/usr/lib | |
167 | ||
168 | ||
169 | # ------------- | |
170 | # Linking | |
171 | # ------------- | |
172 | ||
173 | # generate always debugging information for GDB (slows down the compiling | |
174 | # process) | |
175 | #-g | |
176 | ||
177 | # always pass an option to the linker | |
178 | #-k-s | |
179 | ||
180 | # Always strip debuginfo from the executable | |
181 | -Xs | |
182 | ||
183 | ||
184 | # ------------- | |
185 | # Miscellaneous | |
186 | # ------------- | |
187 | ||
188 | # Write always a nice FPC logo ;) | |
189 | -l | |
190 | ||
191 | # Verbosity | |
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) | |
199 | ||
200 | # Display Info, Warnings, Notes and Hints | |
201 | -veiwn | |
202 | ||
203 | # If you don't want so much verbosity use | |
204 | #-vw | |
205 | ||
206 | # | |
207 | # That's all folks | |
208 | # |