fpc/compiler
nickysn 93789508fb * synchronized with trunk
git-svn-id: branches/wasm@46440 -
2020-08-15 00:44:32 +00:00
..
aarch64 * patch by J. Gareth Moreton: fix constant handling on aarch64, resolves #37554 2020-08-12 21:13:01 +00:00
arm * reworked usage of tcgnotnode.handle_locjump 2020-08-05 21:15:32 +00:00
armgen * Aarch64: set register size correctly for AndStrb2Strb optimization, resolves #37427 2020-07-28 20:46:05 +00:00
avr * reworked usage of tcgnotnode.handle_locjump 2020-08-05 21:15:32 +00:00
generic
html
i386 * mark all external assemblers using an LLVM tool using af_llvm 2020-07-19 14:30:35 +00:00
i8086 * 8086: Fixed calling of local routines with the near attribute in the 'far code' memory models. 2020-08-14 16:17:18 +00:00
jvm * mark all external assemblers using an LLVM tool using af_llvm 2020-07-19 14:30:35 +00:00
llvm * made internalerror unique 2020-08-04 21:12:06 +00:00
m68k * simplified code 2020-08-08 14:48:24 +00:00
mips * reworked usage of tcgnotnode.handle_locjump 2020-08-05 21:15:32 +00:00
msg * document -FF option 2020-08-12 19:11:45 +00:00
powerpc * reworked usage of tcgnotnode.handle_locjump 2020-08-05 21:15:32 +00:00
powerpc64 * reworked usage of tcgnotnode.handle_locjump 2020-08-05 21:15:32 +00:00
ppcgen * mark all external assemblers using an LLVM tool using af_llvm 2020-07-19 14:30:35 +00:00
riscv * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
riscv32 * reworked usage of tcgnotnode.handle_locjump 2020-08-05 21:15:32 +00:00
riscv64 * reworked usage of tcgnotnode.handle_locjump 2020-08-05 21:15:32 +00:00
sparc * mark all external assemblers using an LLVM tool using af_llvm 2020-07-19 14:30:35 +00:00
sparc64 * mark all external assemblers using an LLVM tool using af_llvm 2020-07-19 14:30:35 +00:00
sparcgen * reworked usage of tcgnotnode.handle_locjump 2020-08-05 21:15:32 +00:00
systems * synchronized with trunk 2020-08-06 22:41:56 +00:00
utils + support wasm32 in the fpc utility 2020-08-06 14:55:47 +00:00
wasm32 * use upper case asm id strings, so assemblers can be selected via the -A option 2020-08-05 16:31:44 +00:00
x86 * Fixed nasm writer by adding a new line after the GLOBAL directive. 2020-08-14 13:10:12 +00:00
x86_64 * do not throw an internal error later on in case of a recursive call, if the declaration of the function was faulty, resolves #37460 2020-07-31 21:03:35 +00:00
xtensa * patch by Christo Crause to make nostackframe with the windowed xtensa abi working, resolves #37550 2020-08-13 20:35:11 +00:00
z80 * reworked usage of tcgnotnode.handle_locjump 2020-08-05 21:15:32 +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 * Reverted accidentally committed files. 2020-08-13 18:48:19 +00:00
aasmdef.pas
aasmsym.pas
aasmtai.pas * synchronized with trunk 2020-08-03 21:15:39 +00:00
aggas.pas * rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS 2020-07-10 21:52:24 +00:00
aopt.pas
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 * Fixed TAOptObj.CollapseZeroDistJump to properly handle delay slots. 2020-07-28 23:27:42 +00:00
aoptutils.pas
assemble.pas * mark all external assemblers using an LLVM tool using af_llvm 2020-07-19 14:30:35 +00:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas
cepiktimer.pas
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 * rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS 2020-07-10 21:52:24 +00:00
cg64f32.pas * For 8 and 16 bit CPUs preload the ref base and index to a separate temp register in the generic implementation of a_load64_reg_ref() and a_load64_ref_reg(). 2020-08-03 18:45:38 +00:00
cgbase.pas * Changed tsuperregisterworklist.get() to always return the last item from the list. 2020-07-25 18:29:59 +00:00
cgexcept.pas * fix several double ; 2020-05-24 17:52:09 +00:00
cghlcpu.pas
cgobj.pas Disable limitation of handling of negative shift values, can be enalbed again by setting LIMIT_NEG_SHIFTVALUES macro 2020-08-04 07:45:03 +00:00
cgutils.pas [PATCH 41/83] revise treference extension for wasm. specifying local variable use vs memory use 2020-07-29 17:41:15 +00:00
cmsgs.pas
comphook.pas
compiler.pas * fix morphos info unit name after r44454 2020-03-31 05:12:59 +00:00
compinnr.pas * fix for Mantis #37251: apply patches by Bi0T1N to implement the IsConstValue() intrinsic 2020-06-25 20:42:47 +00:00
comprsrc.pas * make sure that the resource compiler related globals are reset 2020-08-12 19:08:31 +00:00
constexp.pas Fix cycle with -CriotR option on aarch64-linux 2020-07-06 11:39:42 +00:00
COPYING.txt
cprofile.pas
crefs.pas
cresstr.pas
cscript.pas
cstreams.pas
cutils.pas
dbgbase.pas * Reworked the optimization of unused $parentfp for nested routines. 2020-05-19 13:17:47 +00:00
dbgcodeview.pas
dbgdwarf.pas * rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS 2020-07-10 21:52:24 +00:00
dbgstabs.pas * rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS 2020-07-10 21:52:24 +00:00
dbgstabx.pas * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
defcmp.pas * extract checking whether two parameter defs of two procdefs are equal into a separate function 2020-07-31 15:55:31 +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
entfile.pas * more wasm -> wasm32 renames 2020-08-05 14:44:34 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas * fix several double ; 2020-05-24 17:52:09 +00:00
fpccrc.pas
fpcdefs.inc * the WASM define renamed WASM32 2020-08-05 14:17:27 +00:00
fpcp.pas
fpkg.pas
fppu.pas
gendef.pas + implement initial compiler support for Win64 on Aarch64 2020-04-21 06:04:22 +00:00
globals.pas * synchronized with trunk 2020-08-03 21:15:39 +00:00
globstat.pas
globtype.pas * mark all external assemblers using an LLVM tool using af_llvm 2020-07-19 14:30:35 +00:00
hlcg2ll.pas * handle LOC_(C)SUBSETREG/REF in second_NegNot_assign 2020-05-07 02:43:02 +00:00
hlcgobj.pas * set mm register subreg properly when cleaning them with xor 2020-07-02 21:14:43 +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
machoutils.pas
Makefile * regenerated makefiles 2020-08-06 14:48:06 +00:00
Makefile.fpc * the wasm target in the makefiles renamed wasm32 2020-08-05 14:23:56 +00:00
MPWMake
msgidx.inc * regenerate msg*.inc files 2020-08-12 19:11:49 +00:00
msgtxt.inc * regenerate msg*.inc files 2020-08-12 19:11:49 +00:00
nadd.pas * insert type casts when creating new unaryminus nodes during simplification, resolves #37508 2020-08-07 21:43:00 +00:00
nbas.pas * ti_const must be part of tempinfostoreflags as well 2020-08-05 21:15:31 +00:00
ncal.pas * Reverted accidentally committed files. 2020-08-13 18:48:19 +00:00
ncgadd.pas
ncgbas.pas + added Z80 inline asm instruction validation 2020-04-29 23:51:23 +00:00
ncgcal.pas * Reverted accidentally committed files. 2020-08-13 18:48:19 +00:00
ncgcnv.pas + Xtensa: the boolean extension is used as flags 2020-04-03 20:15:22 +00:00
ncgcon.pas
ncgflw.pas * synchronized with trunk 2020-08-03 21:15: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 Avoid overflow errors on z80 CPU by changing local variable type from aint to tcgint 2020-07-21 05:23:36 +00:00
ncgmat.pas * reworked usage of tcgnotnode.handle_locjump 2020-08-05 21:15:32 +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
ncgnstld.pas
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
ncgutil.pas * To check the size of a register(s) corresponding to a variable it is needed to use localloc.size instead of def_cgsize(vardef). 2020-07-23 13:10:50 +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 Avoid overflow errors on z80 CPU by changing local variable type from aint to tcgint 2020-07-21 05:23:36 +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 * allow iso gotos within a procedure 2020-08-12 19:07:23 +00:00
ngenutil.pas * rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS 2020-07-10 21:52:24 +00:00
ngtcon.pas * attempt to correct bitpacked arrays on big-endian systems after r43186. this fixed tparray13 test on m68k at least 2020-08-09 21:31:18 +00:00
ninl.pas * fix for Mantis #37187: inside generics the constant code in pexpr does not handle all cases and thus current_procinfo needs to be checked as well 2020-08-03 21:53:14 +00:00
nld.pas * Improved the parentfp optimization to properly handle cases when a nested routine calls other nested routines. 2020-06-20 18:34:26 +00:00
nmat.pas + simplify "x mod -1", resolves #37449 2020-07-30 20:35:34 +00:00
nmem.pas * Improved the parentfp optimization to properly handle cases when a nested routine calls other nested routines. 2020-06-20 18:34:26 +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 + optimize a in [a] 2020-08-06 20:49:08 +00:00
nutils.pas * better complexity handling of mul, slash, div, mod 2020-08-11 18:17:56 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas * rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS 2020-07-10 21:52:24 +00:00
objcutil.pas
ogbase.pas * fix for Mantis #37559: the adjustment of the section type should only be done for internal COFF writers 2020-08-13 05:42:41 +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
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 * Added virtual function TObjSection.GetAltName to be able to specify additional section name by descendants. 2020-08-06 20:21:13 +00:00
ogrel.pas Avoid wrong overflow error when using -Criot options 2020-07-21 05:22:26 +00:00
omfbase.pas
optbase.pas
optconstprop.pas
optcse.pas * setelementn cannot be the root node of a cse domain, resolves #37477 2020-08-06 20:49:07 +00:00
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas * synchronized with trunk 2020-08-12 22:20:37 +00:00
optloadmodifystore.pas
optloop.pas * do not try to unroll a loop if previously an error was thrown, resolves #37475 2020-08-14 18:10:56 +00:00
opttail.pas * disable tail recursion optimisation if there is a copy-back parameter 2020-07-21 17:57:50 +00:00
optutils.pas
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
paramgr.pas * Added optimization option cs_opt_unused_para. It is enabled for -O2 and higher. The parentfp optimization is tied to cs_opt_unused_para. 2020-06-20 18:47:42 +00:00
parser.pas
pass_1.pas * synchronized with trunk 2020-04-26 22:33:58 +00:00
pass_2.pas
pbase.pas
pcp.pas
pdecl.pas * 0 is a valid label in iso mode, resolves #37428 2020-08-11 12:05:13 +00:00
pdecobj.pas
pdecsub.pas * msdos: By default external routine names with the pascal calling convention must be all upper case. This is TP and TASM compatible. 2020-08-14 16:21:12 +00:00
pdecvar.pas * rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS 2020-07-10 21:52:24 +00:00
pexports.pas
pexpr.pas * reject the default Create array constructor if used on a variable instead of a type 2020-08-05 21:35:01 +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 * delay setting of pd_body and pd_implement till the header of a generic 2020-06-30 20:36:51 +00:00
pinline.pas * ensure that dispose(managed_ptr) does not result in multiple evaluations of 2020-06-21 15:10:38 +00:00
pkgutil.pas * fix several double ; 2020-05-24 17:52:09 +00:00
pmodules.pas * rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS 2020-07-10 21:52:24 +00:00
pp.lpi * update version 2020-08-09 18:52:25 +00:00
pp.pas * the WASM define renamed WASM32 2020-08-05 14:17:27 +00:00
pparautl.pas * allow overloads with same result type for external Java classes due to Java supporting covariant return types for interfaces 2020-08-02 12:28:46 +00:00
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi [PATCH 02/83] updating common FPC sources for WASM target 2020-07-29 16:01:48 +00:00
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
ppcwasm32.lpi * the compiler/wasm directory renamed compiler/wasm32 2020-08-05 14:19:18 +00:00
ppcx64.lpi
ppcx64llvm.lpi
ppcxtensa.lpi
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 * correctly set the generic related defoptions for an outlined procdef 2020-06-13 18:42:26 +00:00
procinfo.pas * Improved the parentfp optimization to properly handle cases when a nested routine calls other nested routines. 2020-06-20 18:34:26 +00:00
psabiehpi.pas
pstatmnt.pas * 0 is a valid label in iso mode, resolves #37428 2020-08-11 12:05:13 +00:00
psub.pas * Reverted accidentally committed files. 2020-08-13 18:48:19 +00:00
psystem.pas * synchronized with trunk 2020-08-03 21:15:39 +00:00
ptconst.pas
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 o patch for Xtensa by Christo Crause, resolves #37099 2020-06-21 14:51:40 +00:00
rabase.pas
rasm.pas
rautils.pas * make local variables in assembler blocks working again after r44933 2020-06-20 20:17:53 +00:00
README.txt
rescmn.pas + add option -FF to force the use of fpcres as RC compiler 2020-08-12 19:08:25 +00:00
rgbase.pas + added the Z80 individual flag bits as subregisters 2020-05-11 19:17:31 +00:00
rgobj.pas * In assembly comments include all used registers by a variable for 8/16 bit CPUs. 2020-08-06 17:57:30 +00:00
scandir.pas * rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS 2020-07-10 21:52:24 +00:00
scanner.pas * 8086: Do not force far calls in the TP mode by default. This is TP compatible. Other modes need forced far calls by default in order to compile non-TP code. 2020-08-14 16:56:13 +00:00
switches.pas
symbase.pas
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 * revert part of r45810 which was accidently committed 2020-07-20 20:21:44 +00:00
symsym.pas * revert part of r45810 which was accidently committed 2020-07-20 20:21:44 +00:00
symtable.pas * variables can have the same name as the main program in iso mode, resolves #37322 2020-07-10 21:05:59 +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
syscinfo.pas
systems.inc * renamed as_wasm_binaryen -> as_wasm32_binaryen and as_wasm_wabt -> as_wasm32_wabt 2020-08-05 16:13:56 +00:00
systems.pas * synchronized with trunk 2020-08-14 02:04:01 +00:00
tgobj.pas
tokens.pas
triplet.pas * mark all external assemblers using an LLVM tool using af_llvm 2020-07-19 14:30:35 +00:00
verbose.pas
version.pas * Xtensa: set source_cpu_string 2020-04-26 17:23:24 +00:00
widestr.pas
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