fpc/compiler
nickysn 842f400f0d * synchronized with trunk
git-svn-id: branches/wasm@46860 -
2020-09-12 22:49:06 +00:00
..
aarch64 Fix compilation with -dEXTDEBUG for aarch64 2020-08-25 14:33:22 +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: Proper implementation of: If a far procvar is called, it must be in a memory location. This fixes a hack to emulate CALL reg1:reg2. 2020-08-23 10:26:54 +00:00
jvm * emit the correct declaration for procdefs used to force a procname in LLVM 2020-08-23 21:11:09 +00:00
llvm * add Xcode-11.0 as LLVM target version versin 2020-08-23 21:11:13 +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 * patch by Christo Crause, resolves #37335 2020-08-20 21:29:48 +00:00
powerpc * reworked usage of tcgnotnode.handle_locjump 2020-08-05 21:15:32 +00:00
powerpc64 Replace outdated cgop2string function by tcgsize2str function from cgbase unit to fix EXTDEBUG cycle on powerpc64le-linux 2020-08-25 13:29:16 +00:00
ppcgen Replace outdated cgop2string function by tcgsize2str function from cgbase unit to fix EXTDEBUG cycle on powerpc64le-linux 2020-08-25 13:29:16 +00:00
riscv Replace outdated cgop2string function by tcgsize2str function from cgbase unit to fix EXTDEBUG cycle on powerpc64le-linux 2020-08-25 13:29:16 +00:00
riscv32 * RiscV32 correctly set operands of div/mod operations, resolves #37743 2020-09-12 21:32:11 +00:00
riscv64 Replace outdated cgop2string function by tcgsize2str function from cgbase unit to fix EXTDEBUG cycle on powerpc64le-linux 2020-08-25 13:29:16 +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-09-06 01:54:50 +00:00
utils * synchronized with trunk 2020-08-17 21:54:29 +00:00
wasm32 * declare end_function as an instruction, instead of a directive 2020-09-11 16:25:44 +00:00
x86 * 8086: Do not destroy contents of the BX parameter when calling a procvar by ref with a base. 2020-08-22 23:06:55 +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 + introduce tcgobj.a_loadfpu_reg_intreg 2020-09-12 21:23:57 +00:00
z80 * ait_comment,ait_regalloc,ait_tempalloc,ait_varloc instructions produce only comments in the external assembler output. Moved handling of these instructions to TExternalAssembler.WriteComments(). 2020-08-22 19:53:39 +00:00
aasmbase.pas
aasmcfi.pas
aasmcnst.pas * Corrected r46481. Use both tcalo_new_section and tcalo_make_dead_strippable flags since only the default implementation implies a new section creation when tcalo_make_dead_strippable is specified. 2020-08-18 12:27:46 +00:00
aasmdata.pas * Reverted accidentally committed files. 2020-08-13 18:48:19 +00:00
aasmdef.pas
aasmsym.pas
aasmtai.pas * declare end_function as an instruction, instead of a directive 2020-09-11 16:25:44 +00:00
aggas.pas * declare end_function as an instruction, instead of a directive 2020-09-11 16:25:44 +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 * ait_comment,ait_regalloc,ait_tempalloc,ait_varloc instructions produce only comments in the external assembler output. Moved handling of these instructions to TExternalAssembler.WriteComments(). 2020-08-22 19:53:39 +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 + introduce tcgobj.a_loadfpu_reg_intreg 2020-09-12 21:23:57 +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
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 * Added on option to implement library based smartlinking of the dead stripable vectorized lists (e.g. resource strings index). By default smartlinking of such lists only supported when the section based smartlinking (tf_smartlink_sections) is enabled for a target. 2020-08-18 11:31:39 +00:00
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
defcmp.pas * prevent quadratic complexity in the size of the inheritance chain when 2020-09-05 12:25:13 +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 * 8086: Fixed very long section names when $HUGECODE is ON and section based smartlinking is used. 2020-08-20 16:35:27 +00:00
fpcdefs.inc * synchronized with trunk 2020-09-12 22:49:06 +00:00
fpcp.pas
fpkg.pas
fppu.pas
gendef.pas
globals.pas * synchronized with trunk 2020-08-21 21:20:41 +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 + introduce tcgobj.a_loadfpu_reg_intreg 2020-09-12 21:23:57 +00:00
hlcgobj.pas * set mm register subreg properly when cleaning them with xor 2020-07-02 21:14:43 +00:00
htypechk.pas
impdef.pas
import.pas
ldscript.pas
link.pas * wlib: calculate the record size according to the number of files in the library. 2020-08-18 20:02:19 +00:00
macho.pas
machoutils.pas
Makefile * synchronized with trunk 2020-08-21 21:20:41 +00:00
Makefile.fpc * synchronized with trunk 2020-08-21 21:20:41 +00:00
MPWMake
msgidx.inc * patch by Christo Crause, resolves #37335 2020-08-20 21:29:48 +00:00
msgtxt.inc * patch by Christo Crause, resolves #37335 2020-08-20 21:29:48 +00:00
nadd.pas * In the TP mode for 16-bit CPUs uint8+uint8 is extended to sint16+sint16. This is TP compatible. 2020-08-17 09:25:45 +00:00
nbas.pas - reverted r46457, accidentally committed (breaks -Oooptcse) 2020-08-16 12:46:21 +00:00
ncal.pas * synchronized with trunk 2020-08-30 23:47:35 +00:00
ncgadd.pas
ncgbas.pas - reverted r46457, accidentally committed (breaks -Oooptcse) 2020-08-16 12:46:21 +00:00
ncgcal.pas * emit the correct declaration for procdefs used to force a procname in LLVM 2020-08-23 21:11:09 +00:00
ncgcnv.pas + introduce tcgobj.a_loadfpu_reg_intreg 2020-09-12 21:23:57 +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 Amend commit 46484: Do not accept LOC_CSUBSETREF location type as this represents read-only memory region which should never be modified 2020-08-18 21:58:19 +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 * fix tw3930 after r37927 2020-09-05 12:25:09 +00:00
ncgset.pas
ncgutil.pas * Fixed r46801 for the case of int64 params with a single paralocation. 2020-09-08 20:17:50 +00:00
ncgvmt.pas * fix tw3930 after r37927 2020-09-05 12:25:09 +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
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 * better calculation of estimated stack frame size 2020-08-30 20:53:59 +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
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 - reverted r46457, accidentally committed (breaks -Oooptcse) 2020-08-16 12:46:21 +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
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas * avoid 8-bit truncation of the sizes in the internal linker map 2020-06-02 23:13:32 +00:00
ognlm.pas
ogomf.pas * msdos: Fixed AV in the internal linker in some cases when code or data exceeds 64k. 2020-08-20 17:39:45 +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-20 21:45:40 +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
pass_2.pas
pbase.pas
pcp.pas
pdecl.pas * fix tw3930 after r37927 2020-09-05 12:25:09 +00:00
pdecobj.pas
pdecsub.pas * msdos: Force names of external routines to be all uppercase only in TP mode. 2020-08-16 10:45:45 +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 * fix for Mantis #37650: apply adjusted patch by Ryan Joseph do not range check the length of ShortStrings if their length parameter is based on a generic constant 2020-09-04 15:44:23 +00:00
pgentype.pas
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
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 * synchronized with trunk 2020-09-07 21:56:01 +00:00
psystem.pas * synchronized with trunk 2020-08-03 21:15:39 +00:00
ptconst.pas
ptype.pas
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 * Reverted r46836, since it does not work as expected for yet unknown reason. 2020-09-12 10:13:00 +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: enable cs_force_far_calls when m_nested_procvars is enabled. 2020-08-16 10:34:23 +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 * a classrefdef might also be created with a forwarddef, so handle that correctly 2020-09-11 21:24:59 +00:00
symsym.pas * revert part of r45810 which was accidently committed 2020-07-20 20:21:44 +00:00
symtable.pas * fix tw3930 after r37927 2020-09-05 12:25: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
syscinfo.pas
systems.inc + register a LLVM-MC assembler writer (not implemented yet) 2020-08-19 16:18:55 +00:00
systems.pas * synchronized with trunk 2020-08-16 23:43:13 +00:00
tgobj.pas
tokens.pas * fix for Mantis #37579: mark the 'German' tokens with the characters they represent 2020-08-17 19:45:13 +00:00
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
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