fpc/compiler
2023-07-19 19:00:30 +02:00
..
aarch64 Add -Awin64-as option for aarch64 compiler for win64 target 2023-05-26 11:15:55 +00:00
arm
armgen
avr Also add boot information to board aliases. 2023-05-22 19:08:01 +00:00
generic
html
i386 * second mul might get called with a zero operand if the other has a side effect, 2023-03-06 23:19:34 +01:00
i8086 + CPUX86_HAS_BSWAP 2023-02-04 19:20:10 +01:00
jvm
llvm Use systems_darwin set for supported targets for as_clang_llvm_darwin 2023-04-06 14:40:15 +00:00
loongarch64 * patch by Jinyang He to fix building loongarch64 with -Oodfa/-O4 2023-02-06 22:26:02 +01: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 -Tlinux for loongarch64 compiler 2023-07-04 16:31:26 +00:00
powerpc
powerpc64
ppcgen
riscv Fix fullcycle compilation error due to -Sew option 2023-06-14 08:19:06 +02:00
riscv32 * memory sizes updated 2023-02-12 20:55:38 +01: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 Introduce -XLL option for link using ld.lld linker 2023-07-19 19:00:30 +02:00
utils Introduce -XLL option for link using ld.lld linker 2023-07-19 19:00:30 +02:00
wasm32 Merge remote-tracking branch 'origin/main' into wasm_js_promise_integration 2023-06-17 17:11:23 +03:00
x86 Add -Aas-clang for i386/x86_64 unix targets 2023-07-19 19:00:30 +02:00
x86_64 * x86: Some refactoring to use aoc_ForceNewIteration instead of manually advancing p 2023-03-04 18:40:27 +00: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
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
aggas.pas Add aarch64-iphonesim target 2023-03-27 18:45:00 +00:00
aopt.pas
aoptbase.pas
aoptda.pas
aoptobj.pas * New UpdateUsedRegsBetween utility subroutine 2023-02-24 19:39:39 +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 * Fixed bug in register preservation tracking 2023-01-10 22:23:58 +00:00
cgutils.pas
cmsgs.pas
comphook.pas
compiler.pas
compinnr.pas
comprsrc.pas
comptty.pas
constexp.pas
COPYING.txt
cprofile.pas
crefs.pas
cresstr.pas
cscript.pas
cstreams.pas
cutils.pas * patch by Rika: Shorten cutils.compareansistrings, resolves #40213 2023-03-24 22:50:19 +01:00
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas * revert use of DW_AT_external for types as this is not covered by the dwarf standard 2023-03-23 22:44:00 +01:00
dbgdwarfconst.pas * spelling fixed 2023-03-26 15:55:37 +02:00
dbgstabs.pas
dbgstabx.pas
defcmp.pas
defutil.pas + add utility function to retrieve the char type def from a stringlike def 2023-01-26 07:07:34 +01: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
fpcdefs.inc Add loongarch64 architecture support to compiler 2023-02-05 19:18:48 +00:00
fpchash.pas
fpcp.pas
fpkg.pas
fppu.pas
gendef.pas
globals.pas * Implement -t and -x options 2023-06-19 07:04:50 +00:00
globstat.pas
globtype.pas Introduce -XLL option for link using ld.lld linker 2023-07-19 19:00:30 +02:00
hlcg2ll.pas
hlcgobj.pas thlcgobj.g_undefined_ok: new method 2023-01-20 21:07:18 +01:00
htypechk.pas
impdef.pas
import.pas
ldscript.pas
link.pas * fix (hopefully) build without an ld.bfd variant 2023-03-02 22:56:23 +01:00
macho.pas
machoutils.pas
Makefile Add new make variable BETATARGETS, for CPU targets in beta stage, to include it into distclean list 2023-05-26 11:32:16 +00:00
Makefile.fpc Add new make variable BETATARGETS, for CPU targets in beta stage, to include it into distclean list 2023-05-26 11:32:16 +00:00
MPWMake
msgidx.inc Regenerate msgidx.inc and msgtxt.inc files 2023-07-07 17:21:08 +00:00
msgtxt.inc Regenerate msgidx.inc and msgtxt.inc files 2023-07-07 17:21:08 +00:00
nadd.pas * fix #39447: when checking whether the parameters are valid for pointer arithmetic check the *correct* parameter for being valid pointer-like type (I'd say that this was a copy&paste mistake...) 2023-06-30 17:42:39 +02: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
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 * fix #40221: don't allow a conversion from an anonymous function to a procvar type if compare_defs_ext already rejected them 2023-06-16 17:28:50 +02:00
ncon.pas
nflw.pas
ngenutil.pas
ngtcon.pas WPO: fix dead code detection, and handle procvars 2023-03-24 21:22:18 +01:00
ninl.pas
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 Add missing swaping in case of different endianess of stab entry inside TInternalAssembler.WriteStab 2023-04-30 21:23:06 +02:00
ogcoff.pas
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
ogomf.pas
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
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas Introduce -XLL option for link using ld.lld linker 2023-07-19 19:00:30 +02: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
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
pcp.pas
pdecl.pas * fix #40095: when searching a suitable constructor for the custom attribute don't allow the return of a procvar which can happen in Mac/TP procvar modes (like Delphi) 2023-06-30 17:12:56 +02:00
pdecobj.pas * Generate hidden class to be used for TVirtualInterface (wasm only) 2023-07-11 08:36:57 +00:00
pdecsub.pas * Mark method for invoke helper 2023-07-13 07:32:21 +00:00
pdecvar.pas + disallow WebAssembly reference types in records, objects and classes 2023-06-20 15:13:15 +03: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 - rm commented out debug writeln left over from previous commit 2023-06-20 17:25:57 +03:00
pgentype.pas
pgenutil.pas * use new chartype_for_stringlike function to retrieve the char type for a stringlike def instead of casting to a stringdef 2023-01-26 07:07:34 +01:00
pinline.pas
pkgutil.pas
pmodules.pas * Generate hidden class to be used for TVirtualInterface (wasm only) 2023-07-11 08:36:57 +00: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
ppcx64.lpi * project files updated 2023-03-15 23:01:44 +01: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 * also initalize default helper variables of initialization sections, resolves #40183 2023-03-19 21:19:10 +01:00
psystem.pas + magically insert a void externref type in the System unit, called WasmExternRef 2023-06-05 04:26:57 +03:00
ptconst.pas
ptype.pas * ensure that a procvar (especially a "REFERENCE TO") begins either with FUNCTION or PROCEDURE 2023-03-15 23:39:59 +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 Aslo check that live_end is assigned before refering to it 2023-02-13 15:50:04 +01:00
scandir.pas + introduce long forms for $E, $F and $S, resolves #39889 2023-01-08 21:29:31 +01:00
scanner.pas Add new test code to verify that tentfile.buf limits are not overpassed 2023-05-23 22:39:03 +02: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 * Additional fields/enums for invoke helper 2023-07-13 07:32:21 +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 Disable substitution by environment variables in message comment related functions 2023-06-07 01:02:28 +02: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