fpc/compiler
2023-11-11 17:45:23 +00:00
..
aarch64 * a64: Node parser now attempts to directly create BIC, ORN and EON instructions 2023-11-08 21:07:00 +00:00
arm RP2040 support based on modification by Michael Ring (https://github.com/michael-ring/freepascal). 2023-11-11 17:45:23 +00:00
armgen * a64: Porting of MatchOperand function from x86 that takes integer parameter 2023-10-22 12:16:50 +00:00
avr Also add boot information to board aliases. 2023-05-22 19:08:01 +00:00
generic
html
i386 * Pass 2 can now be run multiple times when 2023-11-05 10:03:52 +00:00
i8086 * New "fast 3-component LEA hint" and "Icelake" CPU options 2023-10-29 10:26:52 +00:00
jvm
llvm Rename fields of tspillregsinfo record to avoid having same field names as treginfo record 2023-09-26 18:18:04 +00:00
loongarch64 Try to fix crash in loongarch64 compiler 2023-09-26 18:18:04 +00:00
m68k m68k: do not generate LEA instructions with explicitly specified size. only long is possible anyway. 2023-01-30 09:56:41 +01:00
mips Fix storing of unaligned 64-bit to memory 2023-04-21 10:32:13 +01:00
msg Add -vj option in options unit to set V_Parallel 2023-09-09 07:49:22 +00:00
powerpc
powerpc64 Add globals to implementation _USES clause to prepare move of V_XXX constants to globals unit 2023-09-09 06:54:30 +00:00
ppcgen
riscv Added generic WCH32Vx RISC-V processor types using memory size suffixes 2023-08-26 22:12:00 +02:00
riscv32 Change AVOID_OVERFLOW to avoid warning about inequality being always true 2023-10-26 07:47:10 +00:00
riscv64 * correct tripletcpustr, resolves #40301 2023-05-31 20:26:50 +02:00
sparc
sparc64 Fix for sparc64 specific code generation bug report #40252 2023-05-26 17:10:23 +02:00
sparcgen Handle unaligned copy in TCGSparcGen.g_concatcopy method 2023-07-16 01:31:09 -05:00
systems RP2040 support based on modification by Michael Ring (https://github.com/michael-ring/freepascal). 2023-11-11 17:45:23 +00:00
utils Fix handling of ST_LOADMESSAGES token 2023-11-06 20:50:24 +00:00
wasm32 + check whether all br instructions, generated by goto point to a pascal goto label 2023-10-22 05:23:04 +03:00
x86 * Fixed internal error number clash (2022102110) 2023-11-10 18:43:55 +00:00
x86_64 LLVM: fix currency parameters passed on the stack on x86-64 2023-11-05 11:30:19 +01:00
xtensa Disable -EB/-EL passing for freertos OS as the corresponding released binutils do not support this option 2023-05-25 21:47:27 +00:00
z80 Restore start section at end of assembler block inside z80 asm reader 2023-05-15 19:51:11 +02:00
.gitignore git ignore msg2inc binary 2023-07-07 11:17:33 +02:00
aasmbase.pas * fixed and enabled the is_pascal_goto_target check 2023-10-22 04:01:37 +03:00
aasmcfi.pas
aasmcnst.pas * Emit comments in RTTI info for classes/interfaces 2023-05-29 13:41:25 +00:00
aasmdata.pas Add dwarf cfa support 2023-02-05 19:18:48 +00:00
aasmdef.pas
aasmsym.pas
aasmtai.pas * fixed and enabled the is_pascal_goto_target check 2023-10-22 04:01:37 +03:00
aggas.pas + also debug print structured try..catch and try..delegate blocks 2023-10-05 20:37:55 +03:00
aopt.pas
aoptbase.pas
aoptda.pas
aoptobj.pas * Pass 2 can now be run multiple times when 2023-11-05 10:03:52 +00:00
aoptutils.pas
assemble.pas Add missing swaping in case of different endianess of stab entry inside TInternalAssembler.WriteStab 2023-04-30 21:23:06 +02:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas * patch by Rika: Use Index* for pointer lists, resolves #40218 2023-03-25 21:32:29 +01:00
cepiktimer.pas
cfidwarf.pas Add loongarch64 architecture support to compiler 2023-02-05 19:18:48 +00:00
cfileutl.pas * change TCachedSearchRec.Attr to longint as TCachedDirectoryEntry.Attr is also a longint, resolves #40343 2023-07-09 16:20:18 +02:00
cg64f32.pas
cgbase.pas + implemented WebAssembly code generator support for funcref and externref data 2023-06-07 05:25:57 +03:00
cgexcept.pas
cghlcpu.pas
cgobj.pas + introduced [hl]cg.a_label_pascal_goto_target. It is similar to [hl]cg.a_label 2023-06-04 05:11:07 +03:00
cgutils.pas
cmsgs.pas
comphook.pas Add -vj option in options unit to set V_Parallel 2023-09-09 07:49:22 +00:00
compiler.pas
compinnr.pas
comprsrc.pas
comptty.pas
constexp.pas
COPYING.txt
cprofile.pas
crefs.pas
cresstr.pas * Unicode resource strings 2023-07-25 16:06:53 +02:00
cscript.pas
cstreams.pas
cutils.pas * patch by Rika: Shorten cutils.compareansistrings, resolves #40213 2023-03-24 22:50:19 +01:00
dbgbase.pas Add globals to implementation _USES clause to prepare move of V_XXX constants to globals unit 2023-09-09 06:54:30 +00:00
dbgcodeview.pas
dbgdwarf.pas * correctly name nested enum type debug symbols, resolves #40462 2023-10-10 23:16:31 +02:00
dbgdwarfconst.pas * spelling fixed 2023-03-26 15:55:37 +02:00
dbgstabs.pas
dbgstabx.pas
defcmp.pas
defutil.pas * Add is_systemunit_unicode function (cchartype suymbol) 2023-07-22 08:26:22 +00:00
dirparse.pas
dwarfbase.pas
elfbase.pas
entfile.pas Add new test code to verify that tentfile.buf limits are not overpassed 2023-05-23 22:39:03 +02:00
export.pas + support 'promising last' exports 2023-06-16 11:00:19 +03:00
expunix.pas
finput.pas
fmodule.pas * $NAMESPACES directive 2023-07-26 09:45:53 +02:00
fpcdefs.inc Add loongarch64 architecture support to compiler 2023-02-05 19:18:48 +00:00
fpchash.pas
fpcp.pas
fpkg.pas
fppu.pas * the unit name has already been uppercased for the search, so no need to uppercase it again for the message output 2023-10-20 19:54:05 +02:00
gendef.pas
globals.pas * Enable function references and anonymous functions in Delphi mode 2023-10-31 08:42:28 +01:00
globstat.pas
globtype.pas [AVR] Add command line options to selectively remove portions of the RTL startup code. 2023-08-15 21:33:58 +00:00
hlcg2ll.pas
hlcgobj.pas + introduced thlcgobj.a_jmp_always_pascal_goto - same as .a_jmp_always, but generated by a pascal goto statement 2023-10-22 04:12:59 +03:00
htypechk.pas volatile: allow for assignments 2023-08-12 12:04:40 +02:00
impdef.pas
import.pas
ldscript.pas * SetString needs correctly typed argument 2023-07-25 16:06:53 +02:00
link.pas * fix (hopefully) build without an ld.bfd variant 2023-03-02 22:56:23 +01:00
macho.pas
machoutils.pas
Makefile Avoid troubles with exported directories 2023-10-03 10:14:04 +00:00
Makefile.fpc Avoid troubles with exported directories 2023-10-03 10:14:04 +00:00
MPWMake
msgidx.inc Regenerate msg*.inc files after adding -vj option description 2023-09-09 07:49:31 +00:00
msgtxt.inc Regenerate msg*.inc files after adding -vj option description 2023-09-09 07:49:31 +00:00
nadd.pas * Do not insert a widestring <-> ansistring conversion node when checking for (un)equal empty string. 2023-07-22 08:26:22 +00:00
nbas.pas * Adjustment to TBLockNode.pass_1 to actually strip nothing nodes 2023-03-03 21:07:31 +00:00
ncal.pas + add a tcallnodeflag value that prohibits the tcallnode.pass_typecheck to return a procvar in case of a call without parameters with a found symbol, but no suitable procdef 2023-06-30 17:11:43 +02:00
ncgadd.pas
ncgbas.pas
ncgcal.pas
ncgcnv.pas Add loongarch64 architecture support to compiler 2023-02-05 19:18:48 +00:00
ncgcon.pas
ncgflw.pas + introduced thlcgobj.a_jmp_always_pascal_goto - same as .a_jmp_always, but generated by a pascal goto statement 2023-10-22 04:12:59 +03:00
ncghlmat.pas
ncginl.pas
ncgld.pas
ncgmat.pas
ncgmem.pas
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas Create invoke helper if requested and reference it in RTTI 2023-07-13 07:32:21 +00:00
ncgset.pas tcginnode.pass_generate_code: use tlhcgobj.g_undefined_ok 2023-01-20 21:07:18 +01:00
ncgutil.pas
ncgvmt.pas
ncnv.pas * Do not insert widechar -> ansichar conversion node in const declaration 2023-07-22 08:26:22 +00:00
ncon.pas
nflw.pas * fix #40500: do a for-in on a string variable using low(strvar) to high(strvar) so that zero based strings are handled correctly 2023-11-07 20:28:15 +01:00
ngenutil.pas LLVM: fix double init/fini of local managed variables accessed from nested functions 2023-09-14 15:38:21 +02:00
ngtcon.pas WPO: fix dead code detection, and handle procvars 2023-03-24 21:22:18 +01:00
ninl.pas default parameter values: fix crash 2023-09-11 21:35:07 +02:00
nld.pas WPO: fix dead code detection, and handle procvars 2023-03-24 21:22:18 +01:00
nmat.pas
nmem.pas WPO: fix dead code detection, and handle procvars 2023-03-24 21:22:18 +01:00
nobj.pas
nobjc.pas
node.pas * New node pruning methods 2023-02-21 20:44:02 +00:00
nopt.pas
nset.pas
nutils.pas
objcasm.pas
objcdef.pas
objcgutl.pas Add aarch64-iphonesim target 2023-03-27 18:45:00 +00:00
objcutil.pas
ogbase.pas + introduced methods for writing endian-specific integers to TObjSection 2023-11-02 13:15:44 +02:00
ogcoff.pas Add unit specifiers for tlsdirectory fields: they need to be PUInt from globtype unit 2023-08-11 08:38:43 +00:00
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas * SetString needs correctly typed argument 2023-07-25 16:06:53 +02:00
ognlm.pas
ogomf.pas * use NtoLE instead of LEtoN in OMF DoRelocationFixup when converting from native to little endian. No functional changes, just better readability. 2023-11-02 14:28:48 +02:00
ogrel.pas
ogwasm.pas + added mutable globals to the target switches section 2023-06-17 17:00:36 +03:00
omfbase.pas
optbase.pas
optconstprop.pas
optcse.pas * fixed a div by zero error, when compiling a wasi-hosted compiler 2023-10-22 01:11:17 +03:00
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas [AVR] Add command line options to selectively remove portions of the RTL startup code. 2023-08-15 21:33:58 +00:00
optloadmodifystore.pas
optloop.pas
opttail.pas
optutils.pas * patch by Rika: Use Index* for pointer lists, resolves #40218 2023-03-25 21:32:29 +01:00
optvirt.pas
owar.pas
owbase.pas
owomflib.pas Add globals to implementation _USES clause to prepare move of V_XXX constants to globals unit 2023-09-09 06:54:30 +00:00
parabase.pas
paramgr.pas
parser.pas
pass_1.pas * fix compilation with -dEXTDEBUG 2023-02-24 20:39:13 +01:00
pass_2.pas * New 'do not execute' flag for notes and respective internal error triggering 2023-02-21 20:44:02 +00:00
pbase.pas * Forbid use of string alias in system unit 2023-07-22 08:26:22 +00:00
pcp.pas
pdecl.pas * Unicode resource strings 2023-07-25 16:06:53 +02:00
pdecobj.pas * Generate hidden class to be used for TVirtualInterface (wasm only) 2023-07-11 08:36:57 +00:00
pdecsub.pas * fix #40381: also check for hints when parsing the parameters of a routine (including open array parameters) or the result type of a function 2023-09-08 15:54:08 +02:00
pdecvar.pas Fixing trying to consume ID for anonymous switch field 2023-09-28 22:42:49 +00:00
pexports.pas + print an error message, in case 'promising' exports are used on non-WebAssembly platform 2023-06-16 15:44:58 +03:00
pexpr.pas * fix #40410: allow specialization of a procdef also inside exception handlers + added test 2023-10-20 19:54:05 +02:00
pgentype.pas
pgenutil.pas * Refer to bugreport for internal error 20231102 2023-11-08 00:04:18 +01:00
pinline.pas
pkgutil.pas
pmodules.pas * Allow System.Variants (Delphi-compatible name) to be found when inserting variants unit 2023-07-27 18:40:34 +02:00
pp.lpi
pp.pas Add loongarch64 architecture support to compiler 2023-02-05 19:18:48 +00:00
pparautl.pas * fix #40142 and #40324: don't alias the function name to the $result variable for anonymous functions unless an explicit result name is provided 2023-06-23 17:06:41 +02:00
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcarm.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcavr.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcjvm.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcmips64el.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcmips.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcmipsel.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcppc64.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcppc64le.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcppc.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcriscv32.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcriscv64.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcsparc64.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcsparc.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcwasm32.lpi + always call resolve_labels_complex, if DEBUG_WASM_GOTO is defined. 2023-10-16 23:04:11 +03:00
ppcx64.lpi * Unicode resource strings 2023-07-25 16:06:53 +02:00
ppcx64llvm.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcxtensa.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppcz80.lpi * project files updated 2023-03-15 23:01:44 +01:00
ppheap.pas
ppu.pas * for unique type aliases keep track of the original def 2023-06-23 16:15:27 +02:00
procdefutil.pas * revert 430bcac389 as with the change that the functions to insert hidden parameters are idempotent this is no longer required and also wrong as uses of the deleted symbols aside from Self and the framepointer would be left dangling 2023-06-16 16:16:58 +02:00
procinfo.pas
psabiehpi.pas
pstatmnt.pas * do not crash on illegal with statement, resolves #40118 2023-01-18 23:03:28 +01:00
psub.pas default values: store as staticvarsyms in staticsymtable 2023-08-15 21:13:48 +02:00
psystem.pas * Define char as AnsiChar 2023-07-22 08:26:22 +00:00
ptconst.pas
ptype.pas * fix #40504: always provide the global enum symbol for anonymous enum types (e.g. as part of a set) 2023-11-07 20:33:55 +01:00
raatt.pas Add loongarch64 architecture support to compiler 2023-02-05 19:18:48 +00:00
rabase.pas
rasm.pas
rautils.pas * do not warn on lea e/rsp with negative address offset, part of #40113 2023-01-15 23:06:05 +01:00
README.txt
rescmn.pas
rgbase.pas
rgobj.pas Rename fields of tspillregsinfo record to avoid having same field names as treginfo record 2023-09-26 18:18:04 +00:00
scandir.pas * $NAMESPACES directive 2023-07-26 09:45:53 +02:00
scanner.pas * Forbid use of string alias in system unit 2023-07-22 08:26:22 +00:00
switches.pas
symbase.pas
symconst.pas * Additional fields/enums for invoke helper 2023-07-13 07:32:21 +00:00
symcreat.pas Create invoke helper if requested and reference it in RTTI 2023-07-13 07:32:21 +00:00
symdef.pas * Add is_systemunit_unicode function (cchartype suymbol) 2023-07-22 08:26:22 +00:00
symsym.pas
symtable.pas * Check that system unit is actually loaded before using it to search for system symbols 2023-06-19 15:33:15 +02:00
symtype.pas * some error messages use nicer symbol names 2023-04-01 22:34:37 +02:00
symutil.pas JVM: add typesym for anonymous record typed constants 2023-02-05 10:58:59 +01:00
syscinfo.pas
systems.inc Add -Awin64-as option for aarch64 compiler for win64 target 2023-05-26 11:15:55 +00:00
systems.pas + enable the reference types extension in llvm-mc via a command line option 2023-06-07 03:30:40 +03:00
tgobj.pas Add loongarch64 architecture support to compiler 2023-02-05 19:18:48 +00:00
tokens.pas + also allow declaring an external as 'suspending first' 2023-06-13 09:56:44 +03:00
triplet.pas Add aarch64-iphonesim target 2023-03-27 18:45:00 +00:00
verbose.pas Add -vj option in options unit to set V_Parallel 2023-09-09 07:49:22 +00:00
version.pas Add loongarch64 architecture support to compiler 2023-02-05 19:18:48 +00:00
versioncmp.pas
wasmbase.pas
widestr.pas
wpo.pas
wpobase.pas WPO: fix dead code detection, and handle procvars 2023-03-24 21:22:18 +01:00
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