fpc/compiler
2020-06-07 23:21:42 +00:00
..
aarch64 * AArch64: enable TARMAsmOptimizer.OptPass1And 2020-05-31 21:40:59 +00:00
arm * ARM: factor out TARMAsmOptimizer.OptPass1And 2020-05-30 20:44:19 +00:00
armgen * ARM: factor out TARMAsmOptimizer.OptPass1And 2020-05-30 20:44:19 +00:00
avr * avr: patch by Christo Crause: replace findreg_by_gasname with gas_regname_table, resolves #37131 2020-05-26 19:52:19 +00:00
generic Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
html
i386 * factored out OptPass1VPXor 2020-05-24 17:52:07 +00:00
i8086 * call inherited in tcg64f8086.a_op64_reg_ref for OP_NEG and OP_NOT, because it is handled differently after r45302 2020-05-07 11:51:58 +00:00
jvm * fix several double ; 2020-05-24 17:52:09 +00:00
llvm * implemented a_load_undefined_cgpara for LLVM, fixes LLVM code generator 2020-05-21 10:56:39 +00:00
m68k m68k: atari syscalls might also destroy D2 and A2 2020-05-23 11:13:07 +00:00
mips + some basic stuff for mips64el 2020-06-07 20:04:17 +00:00
msg + add MSX-DOS to help text for -T 2020-06-06 18:28:39 +00:00
powerpc + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
powerpc64 * fix several double ; 2020-05-24 17:52:09 +00:00
ppcgen * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
riscv * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
riscv32 * disable cs_opt_regvar on all platforms when compiled for LLVM (LLVM does 2020-01-29 22:21:07 +00:00
riscv64 * disable cs_opt_regvar on all platforms when compiled for LLVM (LLVM does 2020-01-29 22:21:07 +00:00
sparc + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
sparc64 + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
sparcgen + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
systems + add the _BSSEND section after the _BSS section 2020-06-07 22:17:47 +00:00
utils * regenerate Makefiles 2020-06-06 17:18:48 +00:00
x86 * better rules if a 3 op mul operation is tried 2020-06-06 19:21:04 +00:00
x86_64 * fix several double ; 2020-05-24 17:52:09 +00:00
xtensa * patch by Christo Crause: fix register search on xtensa, resolves #37121 2020-05-22 20:54:45 +00:00
z80 + support the OFFSET directive in the Z80 inline assembler reader 2020-06-07 22:17:10 +00:00
aasmbase.pas * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
aasmcfi.pas
aasmcnst.pas * fix a typo in a comment. no functional change 2020-05-14 15:23:27 +00:00
aasmdata.pas * factored out checks whether a procdef's symbol needs to be global, and 2019-07-07 21:33:47 +00:00
aasmdef.pas * also generate indirect symbols for AB_PRIVATE_EXTERN symbols as these might be used from a unit in another package due to inlining 2019-11-21 21:44:12 +00:00
aasmsym.pas
aasmtai.pas * fix several double ; 2020-05-24 17:52:09 +00:00
aggas.pas m68k: avoid more vlink warnings regarding changed section attributes, when the target system has no write-protected sections 2020-05-23 12:13:30 +00:00
aopt.pas * track used register better: if a deallocation is moved/removed, the used register may not be removed from the current register used register set 2020-02-23 18:24:31 +00:00
aoptbase.pas * use RegistersInterfere instead of SuperRegistersEqual in TAoptBase.RegInOp and TAoptBase.RegInRef 2020-05-11 17:18:00 +00:00
aoptda.pas
aoptobj.pas * Z80: JR can be both conditional and uncoditional jump, just like JP 2020-05-17 23:38:23 +00:00
aoptutils.pas o patch by J. Gareth Moreton, seeks to improve maintainability, safety and efficiency 2019-11-26 22:09:33 +00:00
assemble.pas * for PE+ specific checks use a constant in systems.pas instead of an explicit list (easier to extend this way) 2020-04-21 06:04:10 +00:00
blockutl.pas - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +00:00
browcol.pas * added is_normal_fieldvarsym() helper and use it 2019-12-24 22:12:44 +00:00
catch.pas
ccharset.pas * some cleanup 2019-12-23 21:52:06 +00:00
cclasses.pas * do prefetching correctly 2020-01-06 20:59:24 +00:00
cepiktimer.pas + forgotten file 2020-01-06 20:59:25 +00:00
cfidwarf.pas * generate CFI data only if we're either using it for exception handling or if debug output is enabled (or should this only be generated for targets that in theory support DWARF exception handling?). This removes unnecessary bloat from e.g. Windows binaries 2020-05-10 20:46:08 +00:00
cfileutl.pas * fixed opt-in sysroot substitution again, renamed the three-argument version 2019-10-26 13:48:30 +00:00
cg64f32.pas * handle LOC_(C)SUBSETREG/REF in second_NegNot_assign 2020-05-07 02:43:02 +00:00
cgbase.pas + added subregisters for the Z80 flags 2020-05-11 18:03:29 +00:00
cgexcept.pas * fix several double ; 2020-05-24 17:52:09 +00:00
cghlcpu.pas
cgobj.pas * handle LOC_(C)SUBSETREG/REF in second_NegNot_assign 2020-05-07 02:43:02 +00:00
cgutils.pas
cmsgs.pas
comphook.pas * fixed output of line numbers/columns with -vR 2019-12-24 16:14:29 +00:00
compiler.pas * fix morphos info unit name after r44454 2020-03-31 05:12:59 +00:00
compinnr.pas * include the Z80 specific intrinsic values 2020-06-07 18:22:26 +00:00
comprsrc.pas
constexp.pas
COPYING.txt
cprofile.pas * proper naming 2020-01-06 14:58:06 +00:00
crefs.pas
cresstr.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +00:00
cscript.pas
cstreams.pas * partial fix for Mantis #35346: more "inline" directives for TCStream and TCMemoryStream methods 2019-06-28 13:30:33 +00:00
cutils.pas * Removed lot of unused local vars. It is useful to turn on the notes in options. :) 2020-01-28 18:45:33 +00:00
dbgbase.pas * Reworked the optimization of unused $parentfp for nested routines. 2020-05-19 13:17:47 +00:00
dbgcodeview.pas
dbgdwarf.pas * Add riscv-embedded to targets that don't support non-constant leb128's. 2020-01-03 17:03:38 +00:00
dbgstabs.pas * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
dbgstabx.pas * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
defcmp.pas * Reworked the optimization of unused $parentfp for nested routines. 2020-05-19 13:17:47 +00:00
defutil.pas * constrained type parameters are not undefined defs, resolves #37107 2020-05-21 18:19:08 +00:00
dirparse.pas
dwarfbase.pas
elfbase.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
entfile.pas * compilation fixed 2020-04-03 20:25:31 +00:00
export.pas
expunix.pas
finput.pas Commit of new debug feature implemented by J. Gareth Moreton 2019-06-22 14:08:47 +00:00
fmodule.pas * fix several double ; 2020-05-24 17:52:09 +00:00
fpccrc.pas
fpcdefs.inc + some basic stuff for mips64el 2020-06-07 20:04:17 +00:00
fpcp.pas
fpkg.pas
fppu.pas * have the module keep track whether it was loaded from a PPU with a different endianess than the current host system 2020-01-30 21:48:15 +00:00
gendef.pas + implement initial compiler support for Win64 on Aarch64 2020-04-21 06:04:22 +00:00
globals.pas * tcputype.cpu_z80 renamed .cpu_zilog_z80 2020-04-27 15:47:52 +00:00
globstat.pas
globtype.pas + x86: track use of full ymm registers and generate vzeroupper if needed 2020-05-24 17:52:05 +00:00
hlcg2ll.pas * handle LOC_(C)SUBSETREG/REF in second_NegNot_assign 2020-05-07 02:43:02 +00:00
hlcgobj.pas * do not load unused parameters, as their localloc has not been set (and 2020-05-23 19:03:14 +00:00
htypechk.pas * fix for Mantis #35140: apply patch by Ryan Joseph together with some further changes by me to add support for constant parameters in generics 2020-04-25 22:12:35 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas * use qword instead of aword for bsssize to avoid 8-bit truncation on Z80 2020-06-07 23:07:39 +00:00
macho.pas Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
machoutils.pas Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
Makefile * regenerate Makefiles 2020-06-06 17:18:48 +00:00
Makefile.fpc + added z80 to cycletargets 2020-04-19 04:26:41 +00:00
MPWMake
msgidx.inc * regenerate msg{txt,idx}.inc after adding MSX-DOS to help text 2020-06-06 18:28:44 +00:00
msgtxt.inc * regenerate msg{txt,idx}.inc after adding MSX-DOS to help text 2020-06-06 18:28:44 +00:00
nadd.pas * extended r45555 to take care of chars as well 2020-06-02 20:58:44 +00:00
nbas.pas * fix several double ; 2020-05-24 17:52:09 +00:00
ncal.pas * Do not use the LOC_VOID location to indicate unused parameters. 2020-05-21 09:36:40 +00:00
ncgadd.pas * factored out the conditions under which add nodes need to perform 2019-08-03 12:19:50 +00:00
ncgbas.pas + added Z80 inline asm instruction validation 2020-04-29 23:51:23 +00:00
ncgcal.pas * Do not use the LOC_VOID location to indicate unused parameters. 2020-05-21 09:36:40 +00:00
ncgcnv.pas + Xtensa: the boolean extension is used as flags 2020-04-03 20:15:22 +00:00
ncgcon.pas
ncgflw.pas + insert alignments after break/goto/exit/continue jmp instructions, if it is 2020-01-20 21:56:39 +00:00
ncghlmat.pas
ncginl.pas * handle LOC_(C)SUBSETREG/REF in second_NegNot_assign 2020-05-07 02:43:02 +00:00
ncgld.pas * add support for creating non-address-only procvars to 2020-04-02 21:21:36 +00:00
ncgmat.pas * renamed getintparaloc to getcgtempparaloc 2019-12-24 22:12:25 +00:00
ncgmem.pas * Do not use the LOC_VOID location to indicate unused parameters. 2020-05-21 09:36:40 +00:00
ncgnstfl.pas * fix potential crash with copied goto nodes on nestedparentfp platforms 2019-09-14 17:22:23 +00:00
ncgnstld.pas * fixed crashes on platforms using parentfpstructs with generic routines 2019-05-14 19:19:14 +00:00
ncgnstmm.pas * Do not use the LOC_VOID location to indicate unused parameters. 2020-05-21 09:36:40 +00:00
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * add support for creating non-address-only procvars to 2020-04-02 21:21:36 +00:00
ncgset.pas Avoid range check error for avr/i8086 CPU by changing local variable dist type to asizeuint 2019-08-19 20:22:22 +00:00
ncgutil.pas * Do not use the LOC_VOID location to indicate unused parameters. 2020-05-21 09:36:40 +00:00
ncgvmt.pas * fix for Mantis #36935: apply patch by J. Gareth Moreton to fix a typo in cs_opt_remove_empty_proc 2020-04-20 18:42:30 +00:00
ncnv.pas * replaced custom packed record with tmethod 2020-05-22 13:11:52 +00:00
ncon.pas * fix for Mantis #35140: apply patch by Ryan Joseph together with some further changes by me to add support for constant parameters in generics 2020-04-25 22:12:35 +00:00
nflw.pas * set implicitframe for copied tryfinally nodes as well 2020-04-21 06:07:03 +00:00
ngenutil.pas + add compiler support for the Z80 MSX-DOS target 2020-06-06 17:16:20 +00:00
ngtcon.pas * add support for creating non-address-only procvars to 2020-04-02 21:21:36 +00:00
ninl.pas * make more use of is_typeparam 2020-05-21 18:40:59 +00:00
nld.pas * Reworked the optimization of unused $parentfp for nested routines. 2020-05-19 13:17:47 +00:00
nmat.pas * fix for Mantis #35140: apply patch by Ryan Joseph together with some further changes by me to add support for constant parameters in generics 2020-04-25 22:12:35 +00:00
nmem.pas * Do not use the LOC_VOID location to indicate unused parameters. 2020-05-21 09:36:40 +00:00
nobj.pas * add support for creating non-address-only procvars to 2020-04-02 21:21:36 +00:00
nobjc.pas
node.pas * a nil node is also a constant pointer node 2020-06-01 20:50:38 +00:00
nopt.pas
nset.pas * fix several double ; 2020-05-24 17:52:09 +00:00
nutils.pas * make fparainit and fparacopyback public 2020-05-03 20:37:07 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas * fix several double ; 2020-05-24 17:52:09 +00:00
objcutil.pas
ogbase.pas * the len parameter of TObjData.writebytes changed to TObjSectionOfs to avoid 8-bit truncation on Z80 2020-06-07 23:05:13 +00:00
ogcoff.pas + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
ogelf.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
oglx.pas
ogmacho.pas + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
ogmap.pas * avoid 8-bit truncation of the sizes in the internal linker map 2020-06-02 23:13:32 +00:00
ognlm.pas + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
ogomf.pas + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
ogrel.pas * fixed a bug in the Z80 internal linker when reading symbol offsets from .rel files 2020-06-07 23:21:42 +00:00
omfbase.pas * compilation of x86 and PowerPC fixed 2019-10-09 19:26:59 +00:00
optbase.pas + CalcUseSum: calculates a sum of all use sets of the current node and its children 2020-01-10 21:34:29 +00:00
optconstprop.pas + propagate constants across call nodes 2020-02-15 18:27:22 +00:00
optcse.pas * cse adjusted 2019-11-16 14:07:59 +00:00
optdead.pas
optdeadstore.pas * set nf_* correctly when an inc/dec node is converted into an add/sub node 2020-02-15 13:53:16 +00:00
optdfa.pas * take care of for loop counter read after loop 2020-01-26 20:13:18 +00:00
options.pas + add compiler support for the Z80 MSX-DOS target 2020-06-06 17:16:20 +00:00
optloadmodifystore.pas
optloop.pas + OptimizeForLoop: convert for-loops into zero-based backward for-loops if possible, for most architectures, this results in simpler code 2020-03-08 14:30:59 +00:00
opttail.pas * also allow by-value open array parameters for the tail recursion optimization 2020-01-21 21:30:10 +00:00
optutils.pas * more fixes for loop strength reduction 2020-01-11 20:37:05 +00:00
optvirt.pas
owar.pas * return the correct size for files in ar archive. This is required by the REL 2020-06-01 22:25:31 +00:00
owbase.pas * return the correct size for files in ar archive. This is required by the REL 2020-06-01 22:25:31 +00:00
owomflib.pas
parabase.pas * fix PowerPC compilation 2020-02-02 15:20:28 +00:00
paramgr.pas * fix several double ; 2020-05-24 17:52:09 +00:00
parser.pas Set default stack size for i8086-embedded target: 16384 for far data model, and 2048 for other memory models 2019-11-28 14:50:55 +00:00
pass_1.pas * synchronized with trunk 2020-04-26 22:33:58 +00:00
pass_2.pas
pbase.pas * instead of declaring another type with a 'attribute' suffix, *search* for another type with a 'ATTRIBUTE' suffix (Delphi allows declaring both a TFoo and TFooAttribute in the same unit) 2019-07-12 22:05:18 +00:00
pcp.pas Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
pdecl.pas * fix for Mantis #35140: apply patch by Ryan Joseph together with some further changes by me to add support for constant parameters in generics 2020-04-25 22:12:35 +00:00
pdecobj.pas * get rid of the scanner message for attributes for real this time (sometimes I *really* hate Git -.-) 2019-07-13 09:37:44 +00:00
pdecsub.pas * fix for Mantis #35140: apply patch by Ryan Joseph together with some further changes by me to add support for constant parameters in generics 2020-04-25 22:12:35 +00:00
pdecvar.pas * fix for Mantis #35140: apply patch by Ryan Joseph together with some further changes by me to add support for constant parameters in generics 2020-04-25 22:12:35 +00:00
pexports.pas
pexpr.pas * constrained type parameters are not undefined defs, resolves #37107 2020-05-21 18:19:08 +00:00
pgentype.pas * fix for Mantis #35140: apply patch by Ryan Joseph together with some further changes by me to add support for constant parameters in generics 2020-04-25 22:12:35 +00:00
pgenutil.pas + initialize variables, so compilation with -O3 works 2020-04-27 19:19:54 +00:00
pinline.pas * allow in iso mode constants selecting the branch to dispose of a variant record (no functional effect though), resolves #37085 2020-05-27 21:10:55 +00:00
pkgutil.pas * fix several double ; 2020-05-24 17:52:09 +00:00
pmodules.pas * Windows on Aarch64 requires a relocation section 2020-04-21 06:04:37 +00:00
pp.lpi -- Rückwärtiges Zusammenführen von r39680 in ».«: 2019-08-11 16:31:48 +00:00
pp.pas Reorder and complete list of supported CPUs 2020-05-25 22:14:13 +00:00
pparautl.pas * Do not use the LOC_VOID location to indicate unused parameters. 2020-05-21 09:36:40 +00:00
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi + makefiles use -Sew, so added to the project as well 2019-10-12 21:56:18 +00:00
ppcavr.lpi
ppcjvm.lpi
ppcmips64el.lpi + some basic stuff for mips64el 2020-06-07 20:04:17 +00:00
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcriscv32.lpi
ppcriscv64.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcx64.lpi * unneeded changes reverted 2019-11-10 16:41:53 +00:00
ppcx64llvm.lpi
ppcxtensa.lpi + Xtensa: lazarus project 2020-03-20 22:34:30 +00:00
ppcz80.lpi - removed the z80_internal_linker build mode from the lazarus project 2020-06-03 19:37:44 +00:00
ppheap.pas
ppu.pas * increase PPU version so that 3.2.0 correctly ignores 3.3.1 PPUs instead of fatally failing on the extended header entry 2020-05-01 13:55:01 +00:00
procdefutil.pas
procinfo.pas * Do not use the LOC_VOID location to indicate unused parameters. 2020-05-21 09:36:40 +00:00
psabiehpi.pas * Removed lot of unused local vars. It is useful to turn on the notes in options. :) 2020-01-28 18:45:33 +00:00
pstatmnt.pas * also handle single character register names (needed on Z80 for example) 2020-06-06 17:15:57 +00:00
psub.pas * Reworked the optimization of unused $parentfp for nested routines. 2020-05-19 13:17:47 +00:00
psystem.pas * synchronize with trunk 2020-04-02 22:55:11 +00:00
ptconst.pas * ensure that nothing assembly related is generated for generics when a typed constant (this also includes local variable initializations) are parsed 2019-11-21 21:44:16 +00:00
ptype.pas * fix for Mantis #35140: apply patch by Ryan Joseph together with some further changes by me to add support for constant parameters in generics 2020-04-25 22:12:35 +00:00
raatt.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
rabase.pas
rasm.pas
rautils.pas * fix several double ; 2020-05-24 17:52:09 +00:00
README.txt
rescmn.pas
rgbase.pas + added the Z80 individual flag bits as subregisters 2020-05-11 19:17:31 +00:00
rgobj.pas Modify code to avoid error when compiling with -CriotR option 2020-02-10 09:37:53 +00:00
scandir.pas * fixed {$unitpath xxx} directive with absolute paths 2020-05-18 17:20:13 +00:00
scanner.pas * add support for AND, OR, XOR and NOT of integer values in preprocessor directives (Delphi allows that as well) 2020-04-24 14:09:04 +00:00
switches.pas
symbase.pas * also check for Nil symtables in tsymtable.includeoption 2019-11-24 00:04:27 +00:00
symconst.pas * Do not use the LOC_VOID location to indicate unused parameters. 2020-05-21 09:36:40 +00:00
symcreat.pas - removed tabstractrecorddef.get_unit_symtable, which did not always return the unit 2020-05-13 21:46:29 +00:00
symdef.pas * Do not use the LOC_VOID location to indicate unused parameters. 2020-05-21 09:36:40 +00:00
symsym.pas * Do not use the LOC_VOID location to indicate unused parameters. 2020-05-21 09:36:40 +00:00
symtable.pas * fix several double ; 2020-05-24 17:52:09 +00:00
symtype.pas - removed tabstractrecorddef.get_unit_symtable, which did not always return the unit 2020-05-13 21:46:29 +00:00
symutil.pas * added is_normal_fieldvarsym() helper and use it 2019-12-24 22:12:44 +00:00
syscinfo.pas
systems.inc + add compiler support for the Z80 MSX-DOS target 2020-06-06 17:16:20 +00:00
systems.pas + add compiler support for the Z80 MSX-DOS target 2020-06-06 17:16:20 +00:00
tgobj.pas tgobj: Change direction of stack. 2020-03-21 20:59:32 +00:00
tokens.pas * fix precedence of IS operator, resolves #35909 2020-03-06 10:10:58 +00:00
verbose.pas
version.pas * Xtensa: set source_cpu_string 2020-04-26 17:23:24 +00:00
widestr.pas * some cleanup 2019-12-23 21:52:06 +00:00
wpo.pas
wpobase.pas
wpoinfo.pas

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