fpc/compiler
2024-02-16 16:54:23 +01:00
..
aarch64 + function needs_check_for_fpu_exceptions to unify fpu exception handling 2024-02-13 17:42:21 +01:00
arm + function needs_check_for_fpu_exceptions to unify fpu exception handling 2024-02-13 17:42:21 +01:00
armgen * arm/a64: "OptPass2AND" and "OptPass2CMP" adapted to remove vestigial CMP and TST instructions 2024-02-11 21:39:19 +00:00
avr
generic
html
i386 * x86: New "aoc_DoPass2JccOpts" option to catch branch and 2024-02-11 15:05:57 +00:00
i8086
jvm
llvm * Fixed internal error 2022041701 number clash (LLVM changed to 2022041730) 2024-01-28 09:34:14 +00:00
loongarch64 + set pi_do_call on loongarch64 as well if we check for fpu exceptions 2024-02-15 22:47:31 +01:00
m68k m68k: fix tw40182 test 2024-01-09 10:57:11 +01:00
mips
msg * complain about turned off support of c style operators only in the parser, 2024-02-11 11:05:05 +01:00
powerpc + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
powerpc64
ppcgen
riscv + function needs_check_for_fpu_exceptions to unify fpu exception handling 2024-02-13 17:42:21 +01:00
riscv32
riscv64
sparc
sparc64
sparcgen
systems Use writeUInt32LE/writeUInt16LE method to write multi-byte integer in importlib method in t_win unit (as all supported CPUs are little endian) 2024-01-25 01:01:06 +00:00
utils * Add internal_endian field to tppudumpfile class 2024-01-25 11:00:28 +00:00
wasm32 * fix warning 2024-02-08 16:54:33 +02:00
x86 * 3-operand LEA instructions are now expanded if the latency could cause slowdown 2024-02-14 20:59:01 +00:00
x86_64 * x86-64: Typo fixed in FPU type string array 2024-02-13 14:39:29 +00:00
xtensa + set pi_do_call on xtensa as well if we check for fpu exceptions 2024-02-14 23:04:25 +01:00
z80 Follow sdas documentation for .ascii limitations by using only printable chars and .byte for others 2024-02-12 14:03:02 +00:00
.gitignore
aasmbase.pas + support for .debug_loc and .debuc_loclist sections 2024-01-16 23:24:37 +01:00
aasmcfi.pas
aasmcnst.pas * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +01: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 * FindRegAllocBackward will now return nil if it hits a dealloc for the register first 2024-02-11 21:39:19 +00:00
aoptutils.pas * New Boolean "SetAndTest" utility function 2024-02-03 20:30:46 +00:00
assemble.pas Avoid 'false' warning: Local variable "gap_index" does not seem to be initialized on cycle with -O3 option 2024-01-29 18:15:28 +01:00
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 + function needs_check_for_fpu_exceptions to unify fpu exception handling 2024-02-13 17:42:21 +01:00
cmsgs.pas
comphook.pas
compiler.pas
compinnr.pas
comprsrc.pas
comptty.pas
constexp.pas
COPYING.txt
cprofile.pas
crefs.pas
cresstr.pas * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +01:00
cscript.pas
cstreams.pas
cutils.pas
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +01:00
dbgdwarfconst.pas
dbgstabs.pas
dbgstabx.pas
defcmp.pas * protect against comparisons of nested types of generics and specializations 2024-02-09 17:14:29 +01:00
defutil.pas
dirparse.pas
dwarfbase.pas
elfbase.pas
entfile.pas Fix writing of low qword of floatx80 real type into 10-byte array on big endian systems 2024-01-25 10:13:21 +00:00
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 * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +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 * complain about turned off support of c style operators only in the parser, 2024-02-11 11:05:05 +01:00
msgtxt.inc * complain about turned off support of c style operators only in the parser, 2024-02-11 11:05:05 +01:00
nadd.pas
nbas.pas
ncal.pas * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +01:00
ncgadd.pas
ncgbas.pas
ncgcal.pas
ncgcnv.pas
ncgcon.pas
ncgflw.pas
ncghlmat.pas
ncginl.pas
ncgld.pas * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +01:00
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 * clean up of arrayconstructor_to_set, the stringdef case didn't work for years and is not tested, so it probably is not supposed to be there at all 2024-02-10 22:16:02 +01:00
ncon.pas * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +01:00
nflw.pas
ngenutil.pas
ngtcon.pas * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +01:00
ninl.pas * The "Val" intrinsic is now simplified for string constants akin to a 2024-01-13 22:24:08 +00:00
nld.pas * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +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 * decide more sophisticately if a temp. var is needed for fixing #40618 2024-02-02 22:00:22 +01:00
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 * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +01:00
pdecobj.pas * Apply RTTI directive status to symbol 2024-01-02 07:09:22 +01:00
pdecsub.pas
pdecvar.pas
pexports.pas
pexpr.pas * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +01:00
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 * inserting $result into the symtables should never trigger a duplicate symbol error, resolves #40608 2024-01-27 22:05:31 +01:00
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcloongarch64.lpi + lazarus project for a loongarch64 compiler 2024-02-15 22:47:31 +01:00
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 * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +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 * fix typos in comment, no code changes 2024-02-09 14:01:00 +01:00
scanner.pas * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +01:00
switches.pas
symbase.pas
symconst.pas * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +01:00
symcreat.pas
symdef.pas * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +01:00
symsym.pas * Introduce constwresourcestring - in unicode mode, resource strings are unicode strings, and must be streamed differently 2024-02-13 19:44:36 +01:00
symtable.pas * fix #40634: correctly check visibility for child classes in case of a mixture of specializations and non-specializations 2024-02-16 16:54:23 +01:00
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