fpc/compiler
Jonas Maebe 9d2bba1917 * create a separate type and def for the LLVM "i1" type, because reusing
pasbool8type for this results in too much trouble (we mustn't use i1
    for parameters, because then LLVM will try to apply the ABI convention
    for passing "1 bit" values, or in records because then this may
    result in unwanted bitpacking). Downside: the new LLVMBool1 type is
    also exposed in the system unit, because we need it to define LLVM
    intrinsics...

git-svn-id: trunk@33726 -
2016-05-20 20:51:44 +00:00
..
aarch64 * similar change as in r33393 but now for a_load_reg_ref_unaligned(), although 2016-05-01 12:35:06 +00:00
arm * Removed unused vars. 2016-03-21 09:21:24 +00:00
avr * first check for ait_instruction before checking opcode 2016-05-16 13:10:20 +00:00
generic Moved tcontrollerdatatype out into cpuinfo. 2015-09-07 20:36:54 +00:00
html
i386 * fix modification information for vand* 2016-05-01 12:00:25 +00:00
i8086 * handle classrefdefs properly, according to the memory model in i8086's 2016-05-03 15:11:32 +00:00
jvm * fixed initialising an array of ansichar typed constant using a string 2016-03-05 15:32:18 +00:00
llvm * create a separate type and def for the LLVM "i1" type, because reusing 2016-05-20 20:51:44 +00:00
m68k m68k: implemented tcpucasenode.genlinearlist. 68k doesn't need cmp after sub, as sub sets the flags as expected. results in simpler, faster and more compact code 2016-05-19 21:33:45 +00:00
mips * MIPS: some progress with linker: 2016-03-13 17:13:23 +00:00
msg Merge all message related changes from the package branch 2016-04-08 14:56:20 +00:00
powerpc * don't look at the resultdef, but at the defs of the operands to decide 2016-04-20 22:17:15 +00:00
powerpc64 * support marking defs created via the getreusable*() class methods as 2015-11-04 20:46:18 +00:00
ppcgen * fixed ppc jump table generation in case a jump table has cases for the 2016-05-03 09:00:52 +00:00
sparc * Handle possible relocation types in assembler reader using a single AS_RELTYPE token, rather than with individual tokens for each case. Since possible relocations are target-dependent, this will allow to support any amount of them without modifying the base tattreader class. 2016-02-23 21:28:46 +00:00
systems AmigaOS4: set winlike resources 2016-05-02 17:33:52 +00:00
utils Fix ppudump 2016-04-14 18:04:35 +00:00
x86 * do not write any size suffix for cvt*ss2si, doing so makes no sense as the size of the single and the integer might be different on x86-64, resolves issue #30101 2016-05-08 18:50:53 +00:00
x86_64 * fix modification information for vand* 2016-05-01 12:00:25 +00:00
aasmbase.pas + generate .debug_aranges sections for dwarf debug info: enables faster address to debug info translation 2016-04-08 20:19:59 +00:00
aasmcnst.pas + emit_pchar_const() helper for high level typed const builder 2016-01-10 14:01:24 +00:00
aasmdata.pas + generate .debug_aranges sections for dwarf debug info: enables faster address to debug info translation 2016-04-08 20:19:59 +00:00
aasmsym.pas
aasmtai.pas m68k: initial asm-level infrastructure to let the codegenerator output float consts as operands, which is supported on 88x/040/060 2016-05-10 13:47:46 +00:00
aggas.pas + generate .debug_aranges sections for dwarf debug info: enables faster address to debug info translation 2016-04-08 20:19:59 +00:00
aopt.pas * i386 peephole assembler uses largely the common peephole optimizer infrastructure, the resulting code is besides a few improvements the same 2016-04-21 20:14:01 +00:00
aoptbase.pas + TAOptBase.SuperRegistersEqual 2016-05-05 12:38:19 +00:00
aoptcs.pas
aoptda.pas
aoptobj.pas + TAOptBase.SuperRegistersEqual 2016-05-05 12:38:19 +00:00
aoptutils.pas + TX86AsmOptimizer.OptPass1VMOVAP for i386 and x86-64 2016-05-01 09:37:21 +00:00
assemble.pas * handle the asd_cpu asd_cpu directive and keep track of the currently selected 2016-02-27 00:50:01 +00:00
blockutl.pas Extend tstaticvarsym (and by extension tabstractnormalvarsym) with the capability to create it as unregistered if needed. 2015-11-20 11:15:30 +00:00
browcol.pas
catch.pas
ccharset.pas
cclasses.pas Merged revision(s) 32450-32451, 32455, 32457-32458, 32460-32462, 32477, 32480 from branches/svenbarth/packages: 2016-04-15 14:23:55 +00:00
cfidwarf.pas
cfileutl.pas * removed hack to disable dircache for DragonFly BSD now that its dirent 2015-12-24 10:54:53 +00:00
cg64f32.pas * add "doregister" parameter to torddef.create, and don't register temporary 2015-10-13 15:59:06 +00:00
cgbase.pas + initialize DS with the current unit's data segment in the function entry code 2015-09-03 21:44:16 +00:00
cghlcpu.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
cgobj.pas * fixed sign extension for unaligned loads (mantis #29891, although that 2016-03-29 14:52:27 +00:00
cgutils.pas * define avr => cpu8bitalu 2015-09-13 21:07:23 +00:00
cmsgs.pas
comphook.pas + don't abuse status.currentsourcepath to pass on PPU names if the source is unavailable, causes side effects with other frontends (like the IDE). Improved solution for Mantis #27588 2015-03-29 19:05:19 +00:00
compiler.pas Use general_e_exception_raised if Compiler generates an uncaught exception 2015-09-23 16:49:24 +00:00
compinnr.inc Reverted revision 33036. This feature is too controverse to be left in. 2016-02-04 19:26:51 +00:00
comprsrc.pas + ELF/ppc64le resource support 2015-03-14 18:36:32 +00:00
constexp.pas Fix cycle for x86_64-win64 target with -Cr option 2016-01-28 15:07:40 +00:00
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas * emit all resource strings and internal dynamic string data using the 2015-12-25 21:05:26 +00:00
cstreams.pas Merged revision(s) 32302-32305, 32310 from branches/svenbarth/packages: 2016-02-19 17:13:58 +00:00
cutils.pas + Tconstexprint-version of ispowerof2() to correctly deal with constants 2016-03-06 14:16:47 +00:00
cwindirs.pp
dbgbase.pas
dbgdwarf.pas * change address related variables from aint to PInt to avoid range check errors 2016-05-16 19:24:09 +00:00
dbgstabs.pas * add support in the debug info for the dummy s128bit/u128bit types added 2015-12-27 11:45:24 +00:00
dbgstabx.pas
defcmp.pas * better estimation of compatibility of array constructors with open arrays, resolves issue #29244 2016-01-04 23:10:45 +00:00
defutil.pas - removed symcpu dependencies 2015-06-13 22:47:59 +00:00
dirparse.pas
elfbase.pas
entfile.pas Merged revision(s) 31988, 31991-31993, 32136, 32308-32309, 32312, 32318 from branches/svenbarth/packages: 2016-04-15 13:39:41 +00:00
export.pas New export option that enforces the use of the provided export name instead of using the name of the provided symbol. This is necessary to correctly handle overloaded functions, especially if one of them is an internproc one. 2016-04-29 15:03:18 +00:00
expunix.pas * fix warning which prevents compilation with -Oodfa 2016-04-15 19:08:04 +00:00
finput.pas + implemented exporting of functions for the win16 target 2015-09-27 00:48:35 +00:00
fmodule.pas fmodule.pas, tmodule: 2016-05-13 14:51:02 +00:00
fpccrc.pas
fpcdefs.inc * i386 and i8086 have an index register, so define cpurefshaveindexreg 2016-04-21 19:50:47 +00:00
fpcp.pas Merged revision(s) 32508-32510, 32512 from branches/svenbarth/packages: 2016-04-15 14:42:24 +00:00
fpkg.pas Merged revision(s) 32508-32510, 32512 from branches/svenbarth/packages: 2016-04-15 14:42:24 +00:00
fppu.pas Merged revision(s) 31988, 31991-31993, 32136, 32308-32309, 32312, 32318 from branches/svenbarth/packages: 2016-04-15 13:39:41 +00:00
gendef.pas
globals.pas Fix default CPU for assembler blocks (init_settings.asmcputype) to be the same as init_settings.cputype 2016-05-02 11:57:22 +00:00
globstat.pas
globtype.pas Add new Delphi compatible switch {$G+/-}, {$IMPORTEDDATA ON/OFF} which handles generation of indirect references for cross unit variable accesses if needed for the target. 2016-03-18 22:04:57 +00:00
hlcg2ll.pas * have regvars in address registers for defs which are address types. improves code with reference bases in regvars on m68k. and also reduces data register pressure. 2016-05-01 11:33:37 +00:00
hlcgobj.pas * addition to r32779: also fix the type correctness of the array parameter 2016-05-20 20:51:35 +00:00
htypechk.pas Fix for Mantis #29792. 2016-03-09 20:45:26 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas * removed DLLsource global variable and replaced its uses with 2015-12-17 15:23:05 +00:00
macho.pas macho.pas: 2016-03-19 12:18:16 +00:00
machoutils.pas
Makefile m68k: disabled the force-enabled stack checking for m68k-amiga when compiling the compiler, which was enabled since forever. the current Amiga RTL startup code supports setting stack size programmatically, therefore very low default stack on Amiga is no longer a problem 2016-01-05 02:14:40 +00:00
Makefile.fpc m68k: disabled the force-enabled stack checking for m68k-amiga when compiling the compiler, which was enabled since forever. the current Amiga RTL startup code supports setting stack size programmatically, therefore very low default stack on Amiga is no longer a problem 2016-01-05 02:14:40 +00:00
MPWMake
msgidx.inc * regenerate message files after r33450 2016-04-08 14:57:08 +00:00
msgtxt.inc * regenerate message files after r33450 2016-04-08 14:57:08 +00:00
nadd.pas * when simplifying a constant string concatenation that gets assigned to a 2016-05-01 13:16:02 +00:00
nbas.pas + new parser-only node class to handle Delphi-mode inline specializations 2015-09-11 12:58:25 +00:00
ncal.pas * converted variant dispatch parameter construction from a hacked temp 2016-05-20 20:51:41 +00:00
ncgadd.pas * converted register_maybe_adjust_setbase() to the high level code generator 2015-12-05 18:03:37 +00:00
ncgbas.pas + implemented a new {$ASMCPU XXX} directive, allowing to specify a different 2016-02-29 22:25:25 +00:00
ncgcal.pas Fix for Mantis #29372. 2016-01-23 22:19:00 +00:00
ncgcnv.pas Add AT_FUNCTION or AT_DATA to calls to (Weak)RefAsmSymbol. powerpc-macos needs them. 2016-03-19 12:29:21 +00:00
ncgcon.pas * fixed shortstring constant emission after r28210: the terminating #0 2015-12-26 20:01:06 +00:00
ncgflw.pas * have regvars in address registers for defs which are address types. improves code with reference bases in regvars on m68k. and also reduces data register pressure. 2016-05-01 11:33:37 +00:00
ncghlmat.pas * replaced current_procinfo.currtrue/falselabel with storing the true/false 2015-08-27 18:28:57 +00:00
ncginl.pas * implement sizeof/typeof completely at the node level, based on 2015-12-27 14:22:06 +00:00
ncgld.pas Add AT_FUNCTION or AT_DATA to calls to (Weak)RefAsmSymbol. powerpc-macos needs them. 2016-03-19 12:29:21 +00:00
ncgmat.pas + support mmregisters in the generic unaryminus code for floats 2015-09-12 23:33:50 +00:00
ncgmem.pas * removed ancient (since r5554) special handling code for m68k from tcgvecnode, which is no longer necessary 2016-05-04 21:39:37 +00:00
ncgnstld.pas * ensure that we don't firstpass a tcgnestloadnode twice, as it 2015-12-28 15:06:36 +00:00
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas Write indirect symbols for the RTTI (basically a merge of r28238, but using the typed constant builder and the new indirect asmbinds) 2016-04-08 13:39:04 +00:00
ncgset.pas * converted register_maybe_adjust_setbase() to the high level code generator 2015-12-05 18:03:37 +00:00
ncgutil.pas * use currpara.paraloc[calleeside].def instead of currpara.vardef when copying parameters to local registers in ncgutil. this mimics hlcgobj behavior and fixes parameters passed by reference to be allocated into intregs on m68k. among others, this has a big impact on OOP code, because of self, for example 2016-05-19 02:39:45 +00:00
ncgvmt.pas Generate and use an indirect symbol for VMTs. 2016-04-08 14:21:51 +00:00
ncnv.pas * don't narrow expressions that contain a mod/div followed by an "and", 2016-04-02 22:09:34 +00:00
ncon.pas * support unicodestring constants in "case string of" (mantis #29353) 2016-01-20 21:11:26 +00:00
nflw.pas Check for nil before doing loopunrolling. 2016-02-04 15:53:36 +00:00
ngenutil.pas Fix the handling of imports of the init and finalize functions now that the symbols are correctly registered 2016-04-14 21:32:53 +00:00
ngtcon.pas * removed special-purpose code for constant chars while parsing typed string 2015-12-11 15:33:28 +00:00
ninl.pas * changed allocating a temp with type sinttype and size sinttype*dims for 2016-05-20 20:51:38 +00:00
nld.pas * always set the resultdef for variant array constructors correctly, so we 2015-11-04 20:46:10 +00:00
nmat.pas Avoid overflow error for single MinValue in rtl syshelph.inc for x86_64 CPU 2016-01-28 14:20:51 +00:00
nmem.pas * equivalent of r32602 for subscriptnodes; couldn't find a test that fails 2016-03-06 15:10:31 +00:00
nobj.pas * give fields added for VMT definition of TP-style objects the same 2015-12-27 14:21:59 +00:00
nobjc.pas
node.pas + write also node complexity when dumping a node tree 2016-02-28 18:44:43 +00:00
nopt.pas
nset.pas * fixed "case <string> of" with multiple labels for a single statement after 2015-07-03 20:04:25 +00:00
nstate.pas
nutils.pas ARM: avoid some range check errors, while running a compiler compiled with -CR 2016-03-16 10:08:44 +00:00
objcasm.pas * fixed bootstrap for Darwin/ppc with FPC 3.0 (workaround for 2016-05-03 09:01:55 +00:00
objcdef.pas
objcgutl.pas * converted objcgutl (Objective-C metadata generation) to the high level 2016-01-10 17:22:20 +00:00
objcutil.pas Merged revision(s) 28691, 31914 from branches/svenbarth/packages: 2016-01-15 16:06:06 +00:00
ogbase.pas * use PUInt for passing around sizes in ogbase as the width of the data type should dependent on the address size and not the ALU size 2016-05-16 07:55:09 +00:00
ogcoff.pas + generate .debug_aranges sections for dwarf debug info: enables faster address to debug info translation 2016-04-08 20:19:59 +00:00
ogelf.pas + generate .debug_aranges sections for dwarf debug info: enables faster address to debug info translation 2016-04-08 20:19:59 +00:00
oglx.pas * refactored the internal linker ar object reader object creation to allow using 2015-08-14 13:52:45 +00:00
ogmacho.pas + generate .debug_aranges sections for dwarf debug info: enables faster address to debug info translation 2016-04-08 20:19:59 +00:00
ogmap.pas * the code for displaying a symbol address in the linker map file moved to a 2015-08-24 22:12:00 +00:00
ognlm.pas * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
ogomf.pas + generate .debug_aranges sections for dwarf debug info: enables faster address to debug info translation 2016-04-08 20:19:59 +00:00
omfbase.pas + generate .debug_aranges sections for dwarf debug info: enables faster address to debug info translation 2016-04-08 20:19:59 +00:00
optbase.pas
optconstprop.pas
optcse.pas * improve cse on record/array accesses 2016-02-28 18:44:45 +00:00
optdead.pas * factored out the check for whether we have to generate dotted function 2015-03-14 18:35:25 +00:00
optdeadstore.pas
optdfa.pas * factored out SymbolCandidateForWarningOrHint 2016-03-13 19:14:26 +00:00
options.pas Fix default CPU for assembler blocks (init_settings.asmcputype) to be the same as init_settings.cputype 2016-05-02 11:57:22 +00:00
optloop.pas * reset initcode after adding it to the statements list, so further iterations of loop optimization create a new one 2016-03-13 18:19:55 +00:00
opttail.pas
optutils.pas + PrintNodeDFA writes also the defsum 2016-03-13 18:19:52 +00:00
optvirt.pas
owar.pas * refactored the internal linker ar object reader object creation to allow using 2015-08-14 13:52:45 +00:00
owbase.pas * support writing more than 1024 zeros in tobjectwriter.writezeros 2015-08-24 01:09:53 +00:00
owomflib.pas * support writing omf libraries with size greater than 251 blocks 2015-11-07 16:54:23 +00:00
parabase.pas + support for constant call parameters on LLVM 2015-12-28 15:06:07 +00:00
paramgr.pas * only copy the shiftval field from the original para location when creating 2015-12-05 18:03:59 +00:00
parser.pas Use general_e_exception_raised if Compiler generates an uncaught exception 2015-09-23 16:49:24 +00:00
pass_1.pas
pass_2.pas * fixed compilation of the compiler with -dEXTDEBUG after r31588 2015-09-12 11:55:54 +00:00
pbase.pas
pcp.pas Merged revision(s) 31988, 31991-31993, 32136, 32308-32309, 32312, 32318 from branches/svenbarth/packages: 2016-04-15 13:39:41 +00:00
pdecl.pas Ensure that (Bit)SizeOf(GenericParameter) returns a sensible value in case of constants (which are evaluated at compile time unlike if occuring in code) 2016-03-24 20:51:58 +00:00
pdecobj.pas Implement support for parsing "generic [class] procedure" and "generic [class] function" in non-Delphi modes. Since "generic" is a prefix it is quite ugly to implement, but from a Pascal language point of view it fits better than "procedure generic xyz". 2015-11-20 16:50:58 +00:00
pdecsub.pas * allow default parameters for constref (mantis #29992) 2016-04-10 21:27:29 +00:00
pdecvar.pas * initialize variables to avoid warnings 2015-11-21 14:14:30 +00:00
pexports.pas Merged revision(s) 28691, 31914 from branches/svenbarth/packages: 2016-01-15 16:06:06 +00:00
pexpr.pas * fixed indentation 2016-03-06 14:44:17 +00:00
pgentype.pas Fully enable generic functions, procedures and methods by allowing inline specializations in procedure bodies as well. 2015-11-21 16:52:09 +00:00
pgenutil.pas Fix for Mantis #30030. 2016-04-22 13:07:48 +00:00
pinline.pas * fixed string code page after setstring(rawbytestring,..) (mantis #29833) 2016-03-18 12:43:42 +00:00
pkgutil.pas pkgutil.pas, createimportlibfromexternals: 2016-05-13 15:20:08 +00:00
pmodules.pas Merged revision(s) 32515, 32573, 32575, 32579 from branches/svenbarth/packages: 2016-04-15 14:47:51 +00:00
pp.lpi
pp.pas - removed leftover alpha, ia64 and vis code 2015-08-28 22:31:29 +00:00
pparautl.pas * hidden high parameter must be of type ptrsinttype, resolves issue #29204 2015-12-26 20:48:50 +00:00
ppc68k.lpi
ppc8086.lpi + started implementing a win16 target :) 2015-09-05 02:47:42 +00:00
ppcaarch64.lpi * fixed exe output path 2016-03-28 20:44:08 +00:00
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas Merged revision(s) 31988, 31991-31993, 32136, 32308-32309, 32312, 32318 from branches/svenbarth/packages: 2016-04-15 13:39:41 +00:00
ppx86_64.lpi
procinfo.pas * replaced current_procinfo.currtrue/falselabel with storing the true/false 2015-08-27 18:28:57 +00:00
pstatmnt.pas Revert r31262. Not doing type checking on generics leads to strange warnings (e.g. because variables are not considered as written). I better deal with the compile time errors one at a time than the warnings. 2016-03-24 20:58:04 +00:00
psub.pas * i386 peephole assembler uses largely the common peephole optimizer infrastructure, the resulting code is besides a few improvements the same 2016-04-21 20:14:01 +00:00
psystem.pas * create a separate type and def for the LLVM "i1" type, because reusing 2016-05-20 20:51:44 +00:00
ptconst.pas Only add indirect symbol for constants if tf_supports_packages flag is set in target_info.flags 2016-05-12 07:05:58 +00:00
ptype.pas Implement support for parsing "generic [class] procedure" and "generic [class] function" in non-Delphi modes. Since "generic" is a prefix it is quite ugly to implement, but from a Pascal language point of view it fits better than "procedure generic xyz". 2015-11-20 16:50:58 +00:00
raatt.pas * Handle possible relocation types in assembler reader using a single AS_RELTYPE token, rather than with individual tokens for each case. Since possible relocations are target-dependent, this will allow to support any amount of them without modifying the base tattreader class. 2016-02-23 21:28:46 +00:00
rabase.pas
rasm.pas
rautils.pas * set operand size information when accessing fields in assembly 2015-12-02 15:53:22 +00:00
README.txt
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas * update used_in_proc only in trgobj.translate_registers, before it might cause unnecessary pushes of actually unused registers 2016-04-15 21:30:14 +00:00
scandir.pas Fix compilation of the JEDI package. Old Delphi versions have {$WEAKPACKAGEUNIT} while newer ones also seem to allow {$WEAKPACKAGENUNIT ON}... :/ (analogous for DENYPACKAGEUNIT...) 2016-04-15 14:18:39 +00:00
scanner.pas * tscannerfile.readoptionalstate can handle also switches enclosed in (* ... *) comments 2016-04-15 19:08:44 +00:00
script.pas
switches.pas Add new Delphi compatible switch {$G+/-}, {$IMPORTEDDATA ON/OFF} which handles generation of indirect references for cross unit variable accesses if needed for the target. 2016-03-18 22:04:57 +00:00
symbase.pas
symconst.pas Provide basic facilities to handle indirect symbols that are needed for proper dynamic packages support. 2016-03-18 21:34:17 +00:00
symcreat.pas * fixed copy/paste error in r31285 2016-01-10 14:02:02 +00:00
symdef.pas * create a separate type and def for the LLVM "i1" type, because reusing 2016-05-20 20:51:44 +00:00
symsym.pas * don't recalculate the regable info when dereferencing a symbol's vardef: 2016-03-06 13:20:22 +00:00
symtable.pas Partial merge of r28846 (without the global assembler symbols) 2016-04-12 20:59:35 +00:00
symtype.pas * converted the result of fullownerhierarchyname to tsymstr so it (and 2015-11-21 12:37:04 +00:00
symutil.pas
systems.inc Add -Aas-sol to use native Solaris assembler 2015-10-29 15:10:27 +00:00
systems.pas * increase length of asmbin string from 8 chars to 16. this is needed to support standard vasm binary names on PPC and (soon) m68k 2016-04-23 15:51:26 +00:00
tgobj.pas * suppress (harmless) range error 2015-05-31 16:50:50 +00:00
tokens.pas + hardfloat directive (arm only): use hard float calling conventions regardless of the abi, resolves #29715 2016-03-06 15:47:31 +00:00
verbose.pas + don't abuse status.currentsourcepath to pass on PPU names if the source is unavailable, causes side effects with other frontends (like the IDE). Improved solution for Mantis #27588 2015-03-29 19:05:19 +00:00
version.pas - removed leftover alpha, ia64 and vis code 2015-08-28 22:31:29 +00:00
widestr.pas * fixed accidentally committed (harmless) typo in r32202 2015-11-04 13:03:45 +00:00
wpo.pas
wpobase.pas
wpoinfo.pas Merged revision(s) 28689 from branches/svenbarth/packages: 2016-01-22 15:26:30 +00: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