fpc/compiler
2024-01-23 22:11:59 +01:00
..
aarch64
arm * range checking is already performed in pass_typecheck 2024-01-07 17:51:35 +01:00
armgen
avr
generic
html
i386 * disable OptPass2Test and OptPass2CMP for now as it seems to result in buggy code 2024-01-23 22:11:59 +01:00
i8086
jvm
llvm LLVM: remove flags used to support older LLVM versions 2024-01-08 19:33:28 +01:00
loongarch64
m68k m68k: fix tw40182 test 2024-01-09 10:57:11 +01:00
mips
msg * copyright year for compiler logo updated 2024-01-20 20:54:52 +01:00
powerpc + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
powerpc64
ppcgen
riscv
riscv32
riscv64
sparc
sparc64
sparcgen
systems + enable the WASI internal linker 2024-01-07 03:17:07 +02:00
utils * Dump extended RTTI info from PPU 2024-01-02 07:09:22 +01:00
wasm32 * inverted the indices of TWasmValueStack, so that item 0 is top of stack 2024-01-22 11:02:32 +02:00
x86 + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
x86_64 * disable OptPass2Test and OptPass2CMP for now as it seems to result in buggy code 2024-01-23 22:11:59 +01:00
xtensa
z80 + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
.gitignore
aasmbase.pas + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
aasmcfi.pas
aasmcnst.pas * Streamlined label referencing 2024-01-21 16:45:38 +00:00
aasmdata.pas + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
aasmdef.pas
aasmsym.pas
aasmtai.pas
aggas.pas + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
aopt.pas
aoptbase.pas
aoptda.pas
aoptobj.pas
aoptutils.pas
assemble.pas
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas
cepiktimer.pas
cfidwarf.pas
cfileutl.pas
cg64f32.pas
cgbase.pas
cgexcept.pas
cghlcpu.pas
cgobj.pas
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
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas Avoid range check error in AddNormalStringDef 2024-01-10 23:24:46 +01:00
dbgdwarfconst.pas
dbgstabs.pas
dbgstabx.pas
defcmp.pas * fix #40593: don't check for a static method when assigning a methodpointer to a function reference 2024-01-22 19:44:36 +01:00
defutil.pas
dirparse.pas
dwarfbase.pas
elfbase.pas
entfile.pas
export.pas
expunix.pas
finput.pas
fmodule.pas * Implement parsing of RTTI directive 2024-01-02 07:09:21 +01:00
fpcdefs.inc
fpchash.pas
fpcp.pas * search using the real package name instead of the uppercased one so that an as-is cased package will be found as well 2024-01-07 18:09:50 +01:00
fpkg.pas
fppu.pas
gendef.pas
globals.pas
globstat.pas
globtype.pas * Define RTTI directive parameters 2024-01-02 07:09:21 +01:00
hlcg2ll.pas
hlcgobj.pas
htypechk.pas * fix #40594: when assigning a nested function to a function reference don't check for the nested procvars parameter, because nested functions can be treated like anonymous functions here 2024-01-22 22:27:33 +01:00
impdef.pas
import.pas
ldscript.pas
link.pas Try to compute correct page size for wlib call 2024-01-02 14:17:23 +01:00
macho.pas
machoutils.pas
Makefile
Makefile.fpc
MPWMake
msgidx.inc * Implement parsing of RTTI directive 2024-01-02 07:09:21 +01:00
msgtxt.inc * copyright year updated 2024-01-07 17:58:52 +01:00
nadd.pas
nbas.pas
ncal.pas * several issues with the in_val_x optimization fixed 2024-01-14 18:58:08 +01:00
ncgadd.pas
ncgbas.pas
ncgcal.pas
ncgcnv.pas
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 Extended RTTI: optimise fetching VMT index 2024-01-03 22:29:01 +01:00
ncgset.pas * fixed bug that caused 'c in ['a'..'z']' to fail on the WebAssembly target, when code is compiled with {$packset 1} 2024-01-10 03:11:13 +02:00
ncgutil.pas
ncgvmt.pas * ensure that the legacy method table has the correct alignment on platforms that require it (e.g. SPARC64) 2024-01-07 18:09:51 +01:00
ncnv.pas * Code that checks for divisions against -1 is now not inserted if 2024-01-22 21:17:05 +00:00
ncon.pas Add string constant values to stringconstn nodes in parse tree output 2024-01-21 16:39:09 +00:00
nflw.pas
ngenutil.pas
ngtcon.pas
ninl.pas * The "Val" intrinsic is now simplified for string constants akin to a 2024-01-13 22:24:08 +00:00
nld.pas * fix #40594: when assigning a nested function to a function reference don't check for the nested procvars parameter, because nested functions can be treated like anonymous functions here 2024-01-22 22:27:33 +01:00
nmat.pas * More efficient if-statement construction in tmoddivnode.simplify 2024-01-22 21:17:05 +00:00
nmem.pas Add struct field names to subscriptn nodes in parse tree output 2024-01-21 16:39:09 +00:00
nobj.pas
nobjc.pas
node.pas
nopt.pas
nset.pas
nutils.pas
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
ogcoff.pas Also swap word/dword in case of cross-endian compilation 2024-01-20 21:35:24 +01:00
ogelf.pas + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
ogomf.pas
ogrel.pas + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
ogwasm.pas + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
omfbase.pas + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
optbase.pas
optconstprop.pas
optcse.pas
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas do not display the changing assembler note, if the internal and the external assemblers are the same, or there's no internal assembler defined 2024-01-08 14:19:20 +01:00
optloadmodifystore.pas
optloop.pas
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
pdecl.pas
pdecobj.pas * Apply RTTI directive status to symbol 2024-01-02 07:09:22 +01:00
pdecsub.pas
pdecvar.pas
pexports.pas
pexpr.pas
pgentype.pas
pgenutil.pas
pinline.pas
pkgutil.pas
pmodules.pas * Allow RTTI directive also before uses clauses 2024-01-02 07:09:22 +01:00
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 - removed the DEBUG_WASM_GOTO define from the .lpi file 2024-01-14 00:21:40 +02:00
ppcx64.lpi
ppcx64llvm.lpi
ppcxtensa.lpi
ppcz80.lpi
ppheap.pas
ppu.pas * for some reason my ppu.pas had a version of 18, instead of 20... so now the correct version m( 2024-01-03 22:03:03 +01:00
procdefutil.pas
procinfo.pas
psabiehpi.pas
pstatmnt.pas
psub.pas
psystem.pas
ptconst.pas
ptype.pas * factor out pointer_dec 2024-01-07 17:32:50 +01:00
raatt.pas
rabase.pas
rasm.pas
rautils.pas
README.txt
rescmn.pas
rgbase.pas
rgobj.pas
scandir.pas * Implement parsing of RTTI directive 2024-01-02 07:09:21 +01:00
scanner.pas Fix wrong explicit typecast of srsym variable (caught by -CR option) 2024-01-02 14:16:38 +01:00
switches.pas
symbase.pas
symconst.pas * Write extended RTTI info 2024-01-02 07:09:22 +01:00
symcreat.pas
symdef.pas * Introduce RTTI options in symbol definition 2024-01-02 07:09:21 +01:00
symsym.pas * print the whole symbol name for hint messages 2024-01-15 22:29:47 +01:00
symtable.pas
symtype.pas Issue internal error in def type is errordef 2024-01-15 19:54:04 +01:00
symutil.pas
syscinfo.pas
systems.inc
systems.pas
tgobj.pas
tokens.pas
triplet.pas
verbose.pas
version.pas
versioncmp.pas
wasmbase.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