fpc/compiler
2021-10-20 09:59:54 +03:00
..
aarch64 Avoid range check error in TCpuAsmOptimizer.OptPostAnd method 2021-10-04 21:08:24 +00:00
arm
armgen AArch64 popt: don't replace registers with X/WZR 2021-10-04 20:58:05 +02:00
avr * reverted wrongly committed file 2021-08-25 10:41:03 +02:00
generic
html
i386 Better handling of zeroing upper parts of registers 2021-10-16 14:42:19 +02:00
i8086 + being able to define change information for xmm0 2021-10-10 23:07:23 +02:00
jvm
llvm
m68k
mips
msg + added the current WebAssembly exceptions mode to the .ppu module flags and 2021-10-08 23:50:28 +03:00
powerpc
powerpc64
ppcgen
riscv
riscv32
riscv64
sparc
sparc64
sparcgen
systems + enabled compilation of the fpintres unit for the WASI target and enabled tf_has_winlike_resources for the target 2021-10-02 22:43:05 +03:00
utils + fixed compilation of ppudump 2021-10-04 00:29:27 +03:00
wasm32 + use WebAssembly asm labels for the code generation of 'break' statements as well 2021-10-20 09:59:54 +03:00
x86 * manually merged merge request 69 by J. Gareth "Kit" Moreton: 2021-10-17 10:22:30 +02:00
x86_64 Better handling of zeroing upper parts of registers 2021-10-16 14:42:19 +02:00
xtensa * Xtensa: optimize constant multiplications 2021-07-18 21:40:43 +00:00
z80 * itcpugas unit for Z80 providing gas_regname to fix compilation with -dDEBUG_NODE_XML 2021-10-13 23:08:32 +02:00
aasmbase.pas + introduced the use of asm labels for WebAssembly. Resolve them in 2021-10-20 09:39:44 +03:00
aasmcfi.pas
aasmcnst.pas * patch by Sergey Larin: Reducing and aligning the size of TAnsiRec, TUnicodeRec for CPU64, resolves #38018: 2021-10-17 11:13:29 +02:00
aasmdata.pas
aasmdef.pas
aasmsym.pas
aasmtai.pas + support reading of .p2align with op code and/or max. bytes in the gas assembler reader 2021-10-18 22:12:27 +02:00
aggas.pas * x86_64-linux doesn't need .data.rel.ro either 2021-09-28 23:13:35 +02:00
aopt.pas
aoptbase.pas
aoptda.pas
aoptobj.pas Bug fix to XMM block move optimisation 2021-09-26 14:09:29 +00:00
aoptutils.pas
assemble.pas + added support for exception tags and for the 'throw' and 'catch' instructions 2021-09-27 21:44:09 +03:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas * partially applied patch by J. Gareth "Kit" Moreton to inline parts of cclasses, resolves #39344 2021-10-06 21:24:18 +02:00
cepiktimer.pas
cfidwarf.pas
cfileutl.pas
cg64f32.pas
cgbase.pas
cgexcept.pas
cghlcpu.pas
cgobj.pas * unified internal error 2021-08-31 21:32:50 +02:00
cgutils.pas
cmsgs.pas
comphook.pas * nicer spelling 2021-09-11 16:24:52 +02:00
compiler.pas
compinnr.pas
comprsrc.pas
comptty.pas
constexp.pas
COPYING.txt
cprofile.pas
crefs.pas
cresstr.pas
cscript.pas
cstreams.pas
cutils.pas Fix bitpacking 62/63 bit fields on 64 bit targets 2021-10-03 14:00:50 +02:00
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas * patch by Dean Mustakino to avoid generation of debug info for generics, resolves #38827 2021-10-11 18:45:41 +02:00
dbgstabs.pas
dbgstabx.pas
defcmp.pas
defutil.pas * fixed passing of singleton record parameters, containing a float in WebAssembly 2021-10-14 10:53:55 +03:00
dirparse.pas
dwarfbase.pas
elfbase.pas
entfile.pas
export.pas
expunix.pas
finput.pas
fmodule.pas * Fix for issue #39379 by bart broersma 2021-09-29 17:21:57 +02:00
fpcdefs.inc
fpchash.pas o based on a patch by Rika, resolves #39401: 2021-10-10 10:09:22 +02:00
fpcp.pas
fpkg.pas
fppu.pas + added the current WebAssembly exceptions mode to the .ppu module flags and 2021-10-08 23:50:28 +03:00
gendef.pas
globals.pas * fix code for ARM FPA, just in case ... 2021-09-13 22:55:44 +02:00
globstat.pas
globtype.pas + added the current WebAssembly exceptions mode to the .ppu module flags and 2021-10-08 23:50:28 +03:00
hlcg2ll.pas
hlcgobj.pas * thlcgwasm.g_checkexceptions renamed .g_maybe_checkforexceptions, added also as 2021-10-05 17:54:35 +03:00
htypechk.pas
impdef.pas
import.pas
ldscript.pas
link.pas o based on a patch by Rika, resolves #39401: 2021-10-10 10:09:22 +02:00
macho.pas
machoutils.pas
Makefile * to avoid that -Xg causes a failure during comparing ppc3.exe and ppc386.exe on windows, during the last compiler compilation step, the 2021-09-08 21:06:30 +02:00
Makefile.fpc * to avoid that -Xg causes a failure during comparing ppc3.exe and ppc386.exe on windows, during the last compiler compilation step, the 2021-09-08 21:06:30 +02:00
MPWMake
msgidx.inc + added the current WebAssembly exceptions mode to the .ppu module flags and 2021-10-08 23:50:28 +03:00
msgtxt.inc + added the current WebAssembly exceptions mode to the .ppu module flags and 2021-10-08 23:50:28 +03:00
nadd.pas * keep type when removing "1*", resolves #38840 2021-10-17 22:23:49 +02:00
nbas.pas Revert " * patch by J. Gareth Moreton: Nothing (NOP) node optimisation, resolves #38194" 2021-09-25 21:02:29 +02:00
ncal.pas * set expectloc properly for x87 on x86 2021-09-24 22:27:44 +02:00
ncgadd.pas
ncgbas.pas * Added support for the old Turbo Pascal INLINE(data/data/...) statement. 2021-08-16 00:40:34 +03:00
ncgcal.pas + added call to g_maybe_checkforexceptions after generating call to fpc_iocheck 2021-10-05 18:02:11 +03:00
ncgcnv.pas * Patch by J. Gareth "Kit" Moreton (issue #39343). Added missing allocation 2021-09-07 19:50:28 +03:00
ncgcon.pas
ncgflw.pas
ncghlmat.pas
ncginl.pas
ncgld.pas * fixed WebAssembly method pointer assignment 2021-10-03 02:27:19 +03:00
ncgmat.pas
ncgmem.pas * fix range checking for zero based strings, resolves #39323 2021-09-05 21:03:31 +02:00
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas
ncgset.pas
ncgutil.pas
ncgvmt.pas o based on a patch by Rika, resolves #39401: 2021-10-10 10:09:22 +02:00
ncnv.pas
ncon.pas * sizeof(array) and length(array) must return sizeUint in case the array 2021-08-16 21:54:46 +03:00
nflw.pas
ngenutil.pas
ngtcon.pas Typed constants: no internalerror on failure 2021-10-03 21:46:23 +02:00
ninl.pas * sizeof(array) and length(array) must return sizeUint in case the array 2021-08-16 21:54:46 +03:00
nld.pas * Before r35961 (back in 2017) some simple assignment optimizations, such as "x:=x+y" to "inc(x,y)", were performed when -O2 in tassignmentnode.simplify. In r35961 these optimizations were moved to a separate pass which is enabled only when -O3 by cs_opt_use_load_modify_store. This separate pass can benefit from other optimization. But worse code is generated with -O2 since then. 2021-08-13 13:53:40 +03:00
nmat.pas + apply unary minus optimizations also to / 2021-09-23 22:44:16 +02:00
nmem.pas
nobj.pas
nobjc.pas
node.pas
nopt.pas
nset.pas
nutils.pas
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas * emit a weak symbol for the exception tag, since that's what the LLVM linker 2021-09-28 02:52:40 +03:00
ogcoff.pas
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
ogomf.pas * fix x86 compilation after my last commit 2021-10-10 10:21:21 +02:00
ogrel.pas
ogwasm.pas * emit a weak symbol for the exception tag, since that's what the LLVM linker 2021-09-28 02:52:40 +03:00
omfbase.pas
optbase.pas
optconstprop.pas
optcse.pas * x86: only add mm capable consts to register candidate list, this is better 2021-09-12 20:31:45 +02:00
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas * cloned the WebAssembly native exceptions code generation and rtl support into 2021-10-05 00:37:20 +03:00
optloadmodifystore.pas * Before r35961 (back in 2017) some simple assignment optimizations, such as "x:=x+y" to "inc(x,y)", were performed when -O2 in tassignmentnode.simplify. In r35961 these optimizations were moved to a separate pass which is enabled only when -O3 by cs_opt_use_load_modify_store. This separate pass can benefit from other optimization. But worse code is generated with -O2 since then. 2021-08-13 13:53:40 +03:00
optloop.pas * Strength reduction optimization: - Use a temp for complex loop start values to prevent double evaluation. 2021-10-08 18:04:03 +03:00
opttail.pas
optutils.pas
optvirt.pas
owar.pas
owbase.pas
owomflib.pas
parabase.pas
paramgr.pas
parser.pas
pass_1.pas
pass_2.pas
pbase.pas
pcp.pas o based on a patch by Rika, resolves #39401: 2021-10-10 10:09:22 +02:00
pdecl.pas * some warnings fixed 2021-09-18 19:24:53 +02:00
pdecobj.pas
pdecsub.pas
pdecvar.pas
pexports.pas
pexpr.pas * some warnings fixed 2021-09-18 19:24:53 +02:00
pgentype.pas
pgenutil.pas o based on a patch by Rika, resolves #39401: 2021-10-10 10:09:22 +02:00
pinline.pas
pkgutil.pas
pmodules.pas
pp.lpi
pp.pas
pparautl.pas
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips64el.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc64le.lpi
ppcppc.lpi
ppcriscv32.lpi
ppcriscv64.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcwasm32.lpi + enable the WebAssembly internal assembler and object writer 2021-09-26 20:46:47 +03:00
ppcx64.lpi
ppcx64llvm.lpi
ppcxtensa.lpi
ppcz80.lpi
ppheap.pas
ppu.pas o based on a patch by Rika, resolves #39401: 2021-10-10 10:09:22 +02:00
procdefutil.pas
procinfo.pas
psabiehpi.pas
pstatmnt.pas * In TP-style INLINE, allowed the > modifier for global vars and relaxed range checks. 2021-08-16 17:36:12 +03:00
psub.pas + for loop optimizations can be controller by a switch (-Oo(no)forloop) 2021-09-12 10:54:46 +02:00
psystem.pas
ptconst.pas
ptype.pas
raatt.pas + support reading of .p2align with op code and/or max. bytes in the gas assembler reader 2021-10-18 22:12:27 +02:00
rabase.pas
rasm.pas
rautils.pas
README.txt
rescmn.pas
rgbase.pas
rgobj.pas * Prevent spilling of spill-helper registers which contain the value of a 2021-09-10 18:06:12 +03:00
scandir.pas
scanner.pas
switches.pas
symbase.pas
symconst.pas
symcreat.pas
symdef.pas o based on a patch by Rika, resolves #39401: 2021-10-10 10:09:22 +02:00
symsym.pas * some warnings fixed 2021-09-18 19:24:53 +02:00
symtable.pas * fix for #39310 by fixing various small issues in tabstractrecordsymtable.has_single_field: 2021-08-28 20:02:28 +02:00
symtype.pas
symutil.pas
syscinfo.pas
systems.inc + started working on the WebAssembly internal assembler 2021-09-19 16:17:09 +03:00
systems.pas + added system_wasm32_embedded to systems_embedded 2021-10-02 23:14:24 +03:00
tgobj.pas
tokens.pas * Added support for the old Turbo Pascal INLINE(data/data/...) statement. 2021-08-16 00:40:34 +03:00
triplet.pas
verbose.pas * fix warnings with -dDEBUG_NODE_XML, resolves #38222 2021-10-13 23:08:32 +02:00
version.pas Remove "r" from FPC revision. 2021-08-13 11:18:42 +01:00
wasmbase.pas + added support for exception tags and for the 'throw' and 'catch' instructions 2021-09-27 21:44:09 +03: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