fpc/compiler
Pierre Muller 6724e3dec8 Add tsym parameter to ttgobj.getlocal method.
* tgobj.pas: Change virtula method getlocal to
    add tsym paramter to allow for bettter warning when
    required alignment is more than localalignmax.
  * hlcgobj.pas: Adapt thlcgobj.getlocal method to new ttgobj.getlocal
  * ncgflw.pas: Add exceptvarsym as new parameter to getlocal methos
  * jvm/tgcpu.pas: Adapt to added parameter for overloaded virtual method
  * wasm32/tgcpu.pas: Same.
  * llvm/tgllvm.pas: Same.
2025-06-05 12:19:57 +00:00
..
aarch64 * unify internalerror 2025-04-25 09:22:24 +02:00
arm * genlinearlist and genlinearcmplist for case blocks now allocate the flags properly 2025-04-16 10:54:02 +02:00
armgen * arm/a64: Be more careful about hp1 and p_second being null in "TryConstMerge" 2025-05-05 11:24:47 +02:00
avr Check rjmp destination range. 2025-03-02 19:50:30 +02:00
generic
html
i386 Add x86 instruction sets FP16, BF16, 4VNNIW, 4FMAPS. Small updates. 2025-05-24 17:07:14 +02:00
i8086 Add x86 instruction sets FP16, BF16, 4VNNIW, 4FMAPS. Small updates. 2025-05-24 17:07:14 +02:00
jvm Add tsym parameter to ttgobj.getlocal method. 2025-06-05 12:19:57 +00:00
llvm Add tsym parameter to ttgobj.getlocal method. 2025-06-05 12:19:57 +00:00
loongarch64 * enclose {$define DEBUG_AOPTCPU} in {$ifdef EXTDEBUG} 2025-03-10 22:50:49 +01:00
m68k * enclose {$define DEBUG_AOPTCPU} in {$ifdef EXTDEBUG} 2025-03-10 22:50:49 +01:00
mips * enclose {$define DEBUG_AOPTCPU} in {$ifdef EXTDEBUG} 2025-03-10 22:50:49 +01:00
msg Add new message about local variable with excessive alignment 2025-06-05 09:48:29 +00:00
powerpc + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
powerpc64 Add dwarf CFI for powerpc64 cpu 2023-11-23 21:19:52 +01:00
ppcgen + a_bit_scan_reg_reg gets a flag if src cannot be zero: this simplifies the generated code 2025-02-08 14:27:48 +01:00
riscv * proper naming 2025-04-01 22:53:56 +02:00
riscv32 + RiscV: flags for crypotography extensions 2025-03-26 22:44:26 +01:00
riscv64 * cleanup 2025-04-08 22:09:28 +02:00
sparc + cs_opt_consts for sparc 2024-05-08 23:13:05 +02:00
sparc64 + cs_opt_consts for sparc64 2024-05-11 23:41:33 +02:00
sparcgen * enclose {$define DEBUG_AOPTCPU} in {$ifdef EXTDEBUG} 2025-03-10 22:50:49 +01:00
systems Force usage of ld.lld for x86_64-openbsd system, because ld.bfd generates invalid executable which SIGSEGV at exit 2025-06-02 14:36:45 +02:00
utils Fix failure in ppudump after 5462dd38 2025-05-14 06:53:10 +02:00
wasm32 Add tsym parameter to ttgobj.getlocal method. 2025-06-05 12:19:57 +00:00
x86 * x86: "MovMov2Mov 1" now removes the first instruction if the intermediate register is not in use afterwards. 2025-06-02 20:47:29 +02:00
x86_64 Add x86 instruction sets FP16, BF16, 4VNNIW, 4FMAPS. Small updates. 2025-05-24 17:07:14 +02:00
xtensa * enclose {$define DEBUG_AOPTCPU} in {$ifdef EXTDEBUG} 2025-03-10 22:50:49 +01:00
z80 * enclose {$define DEBUG_AOPTCPU} in {$ifdef EXTDEBUG} 2025-03-10 22:50:49 +01:00
.gitignore
aasmbase.pas + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
aasmcfi.pas
aasmcnst.pas tai_string: remove useless #0 terminators 2025-03-24 23:02:10 +01:00
aasmdata.pas * properly fix #41161 2025-04-14 22:41:18 +02:00
aasmdef.pas
aasmsym.pas
aasmtai.pas tai_string: remove useless #0 terminators 2025-03-24 23:02:10 +01:00
aggas.pas Discard ait_symbol_end if tai_symbol_end(hp).sym.is_used is false 2025-05-16 21:13:19 +00:00
aopt.pas * simple clean ups after dyn. array conversion 2025-03-21 21:35:39 +01:00
aoptbase.pas * patch by lag programming: Code cleanup at function TAOptBase.RegInInstruction, resolves #40952 2024-10-15 22:51:39 +02:00
aoptda.pas
aoptobj.pas * Replace labeltable with dynamic array 2025-03-20 17:01:31 +01:00
aoptutils.pas * New Boolean "SetAndTest" utility function 2024-02-03 20:30:46 +00:00
assemble.pas * source linebuf as dyn array 2025-03-20 17:01:31 +01:00
blockutl.pas
browcol.pas Browser information for generic records 2025-02-15 13:22:39 +00:00
catch.pas
ccharset.pas * Use dynamic array instead of pointer for character map 2025-03-20 17:01:31 +01:00
cclasses.pas Avoid range error in tbitset.clear method 2025-03-21 09:26:57 +00:00
cepiktimer.pas
cfidwarf.pas
cfileutl.pas Every compile gets actual current directory (fix for Textmode IDE) 2025-01-10 18:38:22 +00:00
cg64f32.pas
cgbase.pas Fix range check error inside tsuperregisterworklist.addnodup method 2025-03-21 09:11:08 +00:00
cgexcept.pas
cghlcpu.pas + a_bit_scan_reg_reg gets a flag if src cannot be zero: this simplifies the generated code 2025-02-08 14:27:48 +01:00
cgobj.pas + a_bit_scan_reg_reg gets a flag if src cannot be zero: this simplifies the generated code 2025-02-08 14:27:48 +01:00
cgutils.pas + function needs_check_for_fpu_exceptions to unify fpu exception handling 2024-02-13 17:42:21 +01:00
cmsgs.pas * Use dynamic arrays for compiler messages 2025-03-20 17:01:31 +01:00
comphook.pas * Flush output in case of redir 2025-05-20 11:41:51 +02:00
compiler.pas * (hopefully) more consistent message when the compiler is stopped during showing the help screen, resolves #39455 2024-04-25 22:12:31 +02:00
compinnr.pas + random bits for quad support on RiscV 2025-01-06 15:21:18 +01:00
comprsrc.pas * Allow to process .fmx files just as .lfm/.dfm files 2025-02-07 16:12:05 +01:00
comptty.pas
constexp.pas Simplify constexp.pas and fix certain edge cases. 2024-11-17 12:39:18 +00:00
COPYING.txt
cprofile.pas
crefs.pas
cresstr.pas * Make compilerwidestring a class using dyn array, rework tstringconstnode: value_str -> valueas, valuews 2025-03-20 17:01:31 +01:00
cscript.pas
cstreams.pas
ctask.pas * Fix access violation: module can be reset while loading dependent units. Fixes issue #40705 2024-03-26 16:06:27 +01:00
cutils.pas Change CompareChar uses inside compiler/RTL to CompareByte. 2025-02-07 20:51:50 +03:00
dbgbase.pas Add globals to implementation _USES clause to prepare move of V_XXX constants to globals unit 2023-09-09 06:54:30 +00:00
dbgcodeview.pas
dbgdwarf.pas * Dwarf 3+: write always a type for enums 2025-04-17 23:25:06 +02:00
dbgdwarfconst.pas
dbgstabs.pas
dbgstabx.pas
defcmp.pas * fix #41074: adjust conversion level of class/interface to pointer and class to interface conversions so that sub class to class conversions take precedence 2024-12-26 15:03:14 +01:00
defutil.pas Modify is_inlimit function to use setlow instead of setbase field 2025-05-24 08:55:21 +00:00
dirparse.pas - disallow enabling regvars for WebAssembly, because it's not supported, yet 2024-08-25 19:58:05 +03:00
dwarfbase.pas
elfbase.pas
entfile.pas * Change pchar to dynamic array of ansichar 2025-03-20 17:01:31 +01:00
export.pas
expunix.pas
finput.pas * Use dyn array of char for macro contents 2025-03-20 17:01:31 +01:00
fmodule.pas * Use linear mechanism to check whether function types were emitted 2025-04-12 10:50:44 +02:00
fpcdefs.inc * typo 2025-03-29 18:52:16 +01:00
fpchash.pas * make UpdateFnv64 closer to the original algorithm as proposed by Gareth 2024-09-15 21:49:02 +02:00
fpcp.pas * search using the real package name instead of the uppercased one so that an as-is cased package will be found as well 2024-01-07 18:09:50 +01:00
fpkg.pas
fppu.pas Other improvements and fixes for PPU debug code 2025-05-04 15:27:19 +00:00
gendef.pas * partial fix #40934: don't remove the DEF file if cs_link_deffile is set (thus if the user explicitly wants the file) 2024-10-11 16:20:28 +02:00
globals.pas + take care of asmmode in $push/$pop, resolves #41190 2025-03-22 21:16:03 +01:00
globstat.pas * Restore messages state 2024-03-05 07:56:14 +00:00
globtype.pas * Convert symversions to dyn array of word 2025-03-20 17:01:31 +01:00
hlcg2ll.pas + a_bit_scan_reg_reg gets a flag if src cannot be zero: this simplifies the generated code 2025-02-08 14:27:48 +01:00
hlcgobj.pas Add tsym parameter to ttgobj.getlocal method. 2025-06-05 12:19:57 +00:00
htypechk.pas * allow type casted pointer constants being used as arrays which address can be takes, resolves #41177 2025-03-18 22:57:44 +01:00
impdef.pas
import.pas
ldscript.pas * SetString needs correctly typed argument 2023-07-25 16:06:53 +02:00
link.pas * Correct allocation size for IsHandled, index is 1-based 2025-03-24 16:47:02 +01:00
macho.pas
machoutils.pas
Makefile Regenerate all Makefile's after: Change resource string extension variable RSTEXT to '.rsj' 2025-04-08 21:30:26 +00:00
Makefile.fpc Add x86_64-openbsd to LLVM supported list 2025-06-02 14:36:45 +02:00
MPWMake
nadd.pas Use setlow field of tsetdef class to generate new set typedef in set add node 2025-05-24 08:56:15 +00:00
nbas.pas * "no_exit_statement_in_block" replaced with "not has_child_of_type(..., [exitn])" 2024-10-18 18:26:48 +00:00
ncal.pas * constref does not mean that a variable is written, resolves #41206 2025-04-10 22:52:43 +02:00
ncgadd.pas * generic second_addordinal can handle swapped nodes 2024-08-18 22:03:22 +02:00
ncgbas.pas * Flags specific to TAsmNode have been moved to their own field 2024-03-02 21:31:21 +01:00
ncgcal.pas * most of tcgcallparanode.secondcallparan's code was moved into two new methods: 2025-02-25 07:21:13 +02:00
ncgcnv.pas * avoid to call a_loadmm_reg_intreg for mm registers larger than the int registers, resolves #41252 2025-05-11 15:41:11 +02:00
ncgcon.pas Avoid adding size if tf_needs_symbol_size is not in target_info.flags 2025-05-16 21:13:19 +00:00
ncgflw.pas Add tsym parameter to ttgobj.getlocal method. 2025-06-05 12:19:57 +00:00
ncghlmat.pas
ncginl.pas * simplified code 2025-02-10 22:29:18 +01:00
ncgld.pas * use for threadvars on RiscV always the size optimization code path as loading addresses is expensive 2025-04-03 23:14:43 +02:00
ncgmat.pas
ncgmem.pas * Fixed internal error 200411013 when typecasting and dereferencing nil into an array 2025-03-06 22:36:57 +01:00
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas * Make compilerwidestring a class using dyn array, rework tstringconstnode: value_str -> valueas, valuews 2025-03-20 17:01:31 +01:00
ncgopt.pas
ncgrtti.pas Extended RTTI: more Objective-C handling 2025-01-05 11:50:26 +01:00
ncgset.pas * genlinearlist and genlinearcmplist for case blocks now allocate the flags properly 2025-04-16 10:54:02 +02:00
ncgutil.pas * nf_pass1_done, nf_error, nf_processing and nf_do_not_execute 2024-03-24 18:14:49 +00:00
ncgvmt.pas Fix emit_ansistr_const: its input is not guaranteed to be #0-terminated 2025-03-24 23:02:10 +01:00
ncnv.pas + range check assignments of constant sets, resolves #41132 2025-05-17 10:11:58 +02:00
ncon.pas * fix 32 bit => 64 bit cross compilation, resolves #41626 2025-05-17 21:21:20 +02:00
nflw.pas * Call free instead of destroy 2025-03-21 14:25:19 +01:00
ngenutil.pas Accept aign larger than varalignmax but issue a warning 2025-06-05 09:28:32 +00:00
ngtcon.pas Fix emit_ansistr_const: its input is not guaranteed to be #0-terminated 2025-03-24 23:02:10 +01:00
ninl.pas * Replaced Illegal Expression error with Internal Error for 2025-05-17 21:32:05 +02:00
nld.pas * dont' allow assignments to array of const, resolves #41230 2025-04-09 22:36:23 +02:00
nmat.pas + get_int_value 2024-04-16 23:11:16 +02:00
nmem.pas * Make compilerwidestring a class using dyn array, rework tstringconstnode: value_str -> valueas, valuews 2025-03-20 17:01:31 +01:00
nobj.pas * avoid range check error in TVMTBuilder.intf_optimize_vtbls by early bailing out if a class has no interfaces 2024-04-21 19:26:01 +02:00
nobjc.pas * Make compilerwidestring a class using dyn array, rework tstringconstnode: value_str -> valueas, valuews 2025-03-20 17:01:31 +01:00
node.pas * nf_pass1_done, nf_error, nf_processing and nf_do_not_execute 2024-03-24 18:14:49 +00:00
nopt.pas * Flags specific to TArrayConstructorNode have been moved to their own field 2024-03-02 21:31:21 +01:00
nset.pas * correctly calculate the number of labels of a c boolean in case statemnts, resolves #41025 2024-11-20 22:04:58 +01:00
nutils.pas * improve complexity calculation for tempref nodes 2025-02-15 21:41:57 +01:00
objcasm.pas
objcdef.pas
objcgutl.pas Fix emit_ansistr_const: its input is not guaranteed to be #0-terminated 2025-03-24 23:02:10 +01:00
objcutil.pas
ogbase.pas Avoid range check error in TObjData.writebytes overloads using dynamic arrays 2025-03-25 12:09:06 +01:00
ogcoff.pas * Dyn array for FSecTbl and FSymTbl 2025-03-20 17:01:31 +01:00
ogelf.pas * Convert symversions to dyn array of word 2025-03-20 17:01:31 +01:00
oglx.pas
ogmacho.pas
ogmap.pas * SetString needs correctly typed argument 2023-07-25 16:06:53 +02:00
ognlm.pas
ogomf.pas * use NtoLE instead of LEtoN in OMF DoRelocationFixup when converting from native to little endian. No functional changes, just better readability. 2023-11-02 14:28:48 +02:00
ogrel.pas + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
ogwasm.pas * Reduce object size, use ansistring. Results in faster compilation, less memory usage 2025-04-29 23:35:06 +02:00
omfbase.pas + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
optbase.pas * patch by Rika: Don’t pretend optinfo^.index can be aword(−1), resolves #40405 2024-03-03 22:49:28 +01:00
optconstprop.pas * do_optconstpropagate and do_optdeadstoreelim now set their 2024-09-22 12:13:14 +00:00
optcse.pas * more aggressive cse on thread vars 2025-03-29 22:31:13 +01:00
optdead.pas
optdeadstore.pas * do_optconstpropagate and do_optdeadstoreelim now set their 2024-09-22 12:13:14 +00:00
optdfa.pas * properly take care of tempinitcode when calculating def./use. sums of tempcreate nodes 2024-11-25 20:33:54 +01:00
options.pas + RiscV has internal rol/r support 2025-03-27 22:33:30 +01:00
optloadmodifystore.pas
optloop.pas * set types of start value calculation correctly when doing strength reduction, resolves #41054 2024-12-09 22:30:40 +01:00
opttail.pas
optutils.pas * get rid of the hack that tlabelnode inherits from tunarynode and stores a statement in left, resolves #40964 2024-10-26 16:11:24 +02:00
optvirt.pas WPO: don't crash on TP-style objects with only abstract virtual methods 2025-01-01 15:23:06 +01:00
owar.pas * Dyn array for ReadArchive variables 2025-03-20 17:01:31 +01:00
owbase.pas * Change buffer to dyn array 2025-03-20 17:01:31 +01:00
owomflib.pas Add globals to implementation _USES clause to prepare move of V_XXX constants to globals unit 2023-09-09 06:54:30 +00:00
parabase.pas
paramgr.pas
parser.pas * Call free instead of destroy 2025-03-21 14:25:19 +01:00
pass_1.pas * Call free instead of destroy 2025-03-21 14:25:19 +01:00
pass_2.pas * nf_pass1_done, nf_error, nf_processing and nf_do_not_execute 2024-03-24 18:14:49 +00:00
pbase.pas * Properly handle finish state 2024-03-05 07:56:14 +00:00
pcp.pas
pdecl.pas * Make compilerwidestring a class using dyn array, rework tstringconstnode: value_str -> valueas, valuews 2025-03-20 17:01:31 +01:00
pdecobj.pas * throw an error if a second forward type declaration is found at the place of this second 2025-04-22 20:32:25 +02:00
pdecsub.pas * Make compilerwidestring a class using dyn array, rework tstringconstnode: value_str -> valueas, valuews 2025-03-20 17:01:31 +01:00
pdecvar.pas * Determine publishable property type only when specializing a generic 2025-04-18 11:55:42 +02:00
pexports.pas * Make compilerwidestring a class using dyn array, rework tstringconstnode: value_str -> valueas, valuews 2025-03-20 17:01:31 +01:00
pexpr.pas * Call free instead of destroy 2025-03-21 14:25:19 +01:00
pgentype.pas * Reduce memory usage of tspecializationcontext 2025-04-30 00:10:21 +02:00
pgenutil.pas * Fix tgenconst13 2025-03-22 11:22:22 +01:00
pinline.pas * Call free instead of destroy 2025-03-21 14:25:19 +01:00
pkgutil.pas
pmodules.pas * Attributes for methods. Fixes issue 41001 2024-11-08 11:11:26 +01:00
pp.lpi
pp.pas * Remove MMM after discussion on core 2025-03-11 09:57:26 +01:00
pparautl.pas * throw an error if varargs is used without appropriate calling conventions, resolves #40342 2024-05-14 22:44:12 +02:00
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi * update project file 2024-07-11 22:12:38 +02:00
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi * Undo changes to lpi files, committed by accident 2025-03-20 17:41:14 +01:00
ppcloongarch64.lpi + lazarus project for a loongarch64 compiler 2024-02-15 22:47:31 +01:00
ppcmips64el.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc64le.lpi
ppcppc.lpi
ppcriscv32.lpi
ppcriscv64.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcwasm32.lpi * Undo changes to lpi files, committed by accident 2025-03-20 17:41:14 +01:00
ppcx64.lpi * Do not enable new debug define 2025-03-20 17:42:08 +01:00
ppcx64llvm.lpi
ppcxtensa.lpi
ppcz80.lpi
ppheap.pas
ppu.pas * store lower set bound in a setdef 2025-05-13 22:56:09 +02:00
procdefutil.pas * if an outer capturer is required then that outer capturer must not be optimized into a register (fixes compilation with -Ooregvar enabled (e.g. in -O3)) 2025-01-05 13:19:31 +01:00
procinfo.pas * also keep track of captured def (necessary when functions are captured) 2023-12-29 20:26:45 +01:00
psabiehpi.pas
pstatmnt.pas + take care of asmmode in $push/$pop, resolves #41190 2025-03-22 21:16:03 +01:00
psub.pas * fix #40979: don't recurse further into the nested hierarchy for code generation if the function is generic 2025-01-14 20:38:37 +01:00
psystem.pas Switch from functions for the Atomic*-family to intrinsics 2024-12-12 22:05:15 +01:00
ptconst.pas
ptype.pas * Avoid access violation. Use internal error instead 2025-04-12 10:50:44 +02:00
raatt.pas
rabase.pas * Use new and dispose for asmmodeinfos 2025-03-20 17:01:31 +01:00
rasm.pas
rautils.pas Disable limitation of nonlocal setting for LLVM compiler 2025-02-23 09:22:10 +00:00
README.txt
rescmn.pas + initial compiler support for WebAssembly resources. Requires WebAssembly 2024-06-25 03:07:55 +03:00
rgbase.pas
rgobj.pas * Use dynamic arrays instead of getmem for spill temp 2025-03-20 17:01:31 +01:00
scandir.pas + take care of asmmode in $push/$pop, resolves #41190 2025-03-22 21:16:03 +01:00
scanner.pas * Replaced impossible-to-reach errors in case blocks with internal errors in "texprvalue.evaluate" 2025-05-17 21:32:05 +02:00
switches.pas + take care of asmmode in $push/$pop, resolves #41190 2025-03-22 21:16:03 +01:00
symbase.pas * Replace object with record where possible 2024-05-04 16:44:32 +02:00
symconst.pas Postponing building of VMT until inheritance chain is specialized 2024-12-08 17:54:50 +00:00
symcreat.pas * Propagate delphi mode when scanning generated code for wasm (specially generic specialization) 2025-05-20 11:41:51 +02:00
symdef.pas + comments to explain difference between setbase and setlow 2025-05-24 14:31:41 +02:00
symsym.pas * Make compilerwidestring a class using dyn array, rework tstringconstnode: value_str -> valueas, valuews 2025-03-20 17:01:31 +01:00
symtable.pas * Use dyn array of char for macro contents 2025-03-20 17:01:31 +01:00
symtype.pas Other improvements and fixes for PPU debug code 2025-05-04 15:27:19 +00:00
symutil.pas * Make compilerwidestring a class using dyn array, rework tstringconstnode: value_str -> valueas, valuews 2025-03-20 17:01:31 +01:00
syscinfo.pas m68k: basic DOS syscall generation for human68k 2023-11-30 23:43:27 +00:00
systems.inc + added new target to the compiler: wasm32-wasip2. Not working, yet. 2025-03-10 21:53:40 +02:00
systems.pas + added new target to the compiler: wasm32-wasip2. Not working, yet. 2025-03-10 21:53:40 +02:00
tgobj.pas Add tsym parameter to ttgobj.getlocal method. 2025-06-05 12:19:57 +00:00
tokens.pas
triplet.pas
verbose.pas * Use dynamic arrays for compiler messages 2025-03-20 17:01:31 +01:00
version.pas
versioncmp.pas
wasmbase.pas + added extra values to TWasmNameSubsectionType from the extended name section 2024-09-19 06:35:49 +03:00
widestr.pas Fix previous commit 105382b8 by setting Temp to zero if maxi is zero 2025-05-05 15:00:04 +00:00
wpo.pas
wpobase.pas * Write byte dyn array 2025-03-20 17:01:31 +01:00
wpoinfo.pas * Change pointer-to-array of deref to dynamic array 2025-03-20 17:01:31 +01:00

This directory contains the sources of the Free Pascal Compiler

If you want to compile/modify the compiler, please read first the
programmers manual.

To recompile the compiler, you can use the batch files :
 + mppc386.bat    if you want to build a cross compiler from i386 to m68k
 + mppcsparc      if you want to build a cross compiler from i386 to SPARC
 
 or
Use the make utility as following
  
      make OS_TARGET="compiler OS target" \
      CPU_TARGET="compiler CPU target" \
      FPCCPUOPT="Optimization level" \
      PP="compiler used to compile FPC" \
      COMPILER_OPTIONS="Options passed to compiler" \
      
      
If an option is omitted, then target CPU/OS will be same as current CPU/OS
 
Possibles targets are : linux go32v2 win32 os2 freebsd beos netbsd amiga haiku
atari sunos qnx netware openbsd wdosx palmos macos macosx emx
   
Possible compiler switches (* marks a currently required switch):
  -----------------------------------------------------------------
  GDB*                support of the GNU Debugger
  I386                generate a compiler for the Intel i386+
  x86_64              generate a compiler for the AMD x86-64 architecture
  M68K                generate a compiler for the M68000
  SPARC               generate a compiler for SPARC
  POWERPC             generate a compiler for the PowerPC
  VIS                 generate a compile for the VIS
  DEBUG               version with debug code is generated
  EXTDEBUG            some extra debug code is executed
  SUPPORT_MMX         only i386: releases the compiler switch
                      MMX which allows the compiler to generate
                      MMX instructions
  EXTERN_MSG          Don't compile the msgfiles in the compiler, always
                      use external messagefiles, default for TP
  NOAG386INT          no Intel Assembler output
  NOAG386NSM          no NASM output
  NOAG386BIN          leaves out the binary writer, default for TP
  NORA386DIR          No direct i386 assembler reader
  TEST_GENERIC        Test Generic version of code generator
                      (uses generic RTL calls)
  -----------------------------------------------------------------
  cpuflags            The target processor has status flags (on by default)
  cpufpemu            The target compiler will also support emitting software
                       floating point operations
  cpu64bitaddr        The targets use a 64-bit address space (pointers and
                       the default integer type are 64 bit)
  cpu64bitalu         The target cpu has 64-bit registers available (unless
                       cpu64bitaddr is also defined, pointers and default
                       integer type remain 32 bit, but the cpu can perform
                       64 bit calculations directly without needing helpers)
  -----------------------------------------------------------------

  Required switches for a i386 compiler be compiled by Free Pascal Compiler:
  GDB;I386

to build a compiler to SPARC target using a Win32/i386 you just use :
      make CPU_TARGET=SPARC