fpc/compiler
2024-01-14 00:21:40 +02:00
..
aarch64 * a64: SkipAligns calls removed. 2023-12-29 14:17:08 +00:00
arm * range checking is already performed in pass_typecheck 2024-01-07 17:51:35 +01:00
armgen
avr AVR optimization LdsMov2Lds 2023-12-02 18:22:35 +00:00
generic
html
i386 * x86: Additional TEST/CMP optimisations to optimise CMOV blocks 2024-01-07 14:29:42 +00: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 * Fix missing escape for dollar sign 2024-01-07 20:19:38 +01:00
powerpc Add dwarf CFI for 32-bit powerpc cpu 2023-11-23 21:39:14 +01:00
powerpc64 Add dwarf CFI for powerpc64 cpu 2023-11-23 21:19:52 +01:00
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 + added TWasmFuncType.ToString implementation 2023-12-31 21:49:35 +02:00
x86 * x86: PostPeepholeOptMov attempts to convert mov $0,%reg to 2024-01-07 14:29:42 +00:00
x86_64 * x86: Additional TEST/CMP optimisations to optimise CMOV blocks 2024-01-07 14:29:42 +00:00
xtensa
z80
.gitignore
aasmbase.pas
aasmcfi.pas
aasmcnst.pas
aasmdata.pas
aasmdef.pas
aasmsym.pas
aasmtai.pas * SkipInstr now includes ait_align 2023-11-25 20:47:44 +00:00
aggas.pas m68k: initial compiler changes for Human68k (Sharp X68000) support 2023-11-30 23:43:27 +00:00
aopt.pas
aoptbase.pas
aoptda.pas
aoptobj.pas * GetFinalDestination now calls SkipLabels on an alignment field 2023-12-29 14:17:08 +00:00
aoptutils.pas * SkipLabels now handles alignment fields correctly 2023-12-29 14:17:08 +00:00
assemble.pas
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas
cepiktimer.pas
cfidwarf.pas
cfileutl.pas * Allow to disable 8.3 filename search 2023-11-12 09:55:30 +01:00
cg64f32.pas
cgbase.pas
cgexcept.pas
cghlcpu.pas
cgobj.pas Attempt to fix tcalext3 big-endian powerpc64 failure 2023-11-20 01:05:10 +03:00
cgutils.pas
cmsgs.pas
comphook.pas
compiler.pas m68k: initial compiler changes for Human68k (Sharp X68000) support 2023-11-30 23:43:27 +00:00
compinnr.pas
comprsrc.pas * patch by Cyrax: Quote path - which is passed to Windres or alike program, resolves #36526 2022-04-08 22:42:05 +02:00
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
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 * Allow to disable 8.3 filename search 2023-11-12 09:55:30 +01:00
gendef.pas
globals.pas * Allow to disable 8.3 filename search 2023-11-12 09:55:30 +01:00
globstat.pas
globtype.pas * Define RTTI directive parameters 2024-01-02 07:09:21 +01:00
hlcg2ll.pas
hlcgobj.pas LLVM: use llvm.dbg.declare instead of llvm.dbg.addr for variable declarations 2023-12-06 22:57:16 +01:00
htypechk.pas nested procvars: support assignments when switch not active 2023-11-25 22:35:55 +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 human68k: regenerated Makefiles 2023-11-30 23:43:27 +00:00
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 * check for *-1 multiplications after folding, resolves #40448 2023-11-12 22:30:43 +01:00
nbas.pas
ncal.pas * also keep track of captured def (necessary when functions are captured) 2023-12-29 20:26:45 +01:00
ncgadd.pas
ncgbas.pas
ncgcal.pas
ncgcnv.pas
ncgcon.pas
ncgflw.pas
ncghlmat.pas
ncginl.pas
ncgld.pas LLVM: use llvm.dbg.declare instead of llvm.dbg.addr for variable declarations 2023-12-06 22:57:16 +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
ncon.pas trealconstnode.printnodedata: fix currency values getting written to stdout 2023-12-04 22:52:39 +01:00
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
ngtcon.pas
ninl.pas * tinlinenode.handle_str now uses the new intrinsiccode field for TCallNode 2023-12-17 15:15:36 +00:00
nld.pas * also keep track of captured def (necessary when functions are captured) 2023-12-29 20:26:45 +01:00
nmat.pas
nmem.pas
nobj.pas
nobjc.pas
node.pas
nopt.pas
nset.pas
nutils.pas
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas + create relocation objects for R_WASM_TYPE_INDEX_LEB relocations in the wasm object reader 2023-12-28 21:23:08 +02:00
ogcoff.pas
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas
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 * fixed internal linker crash if no tags are defined (i.e. no WASM native exceptions used) 2024-01-07 03:29:32 +02:00
omfbase.pas
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 human68k: more work on getting tinyheap right. still doesn't seem to work, sadly, so still disabled 2023-12-03 12:14:22 +01:00
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 m68k: basic DOS syscall generation for human68k 2023-11-30 23:43:27 +00:00
pdecvar.pas
pexports.pas
pexpr.pas * ensure that nested functions that are assigned to function pointers are considered as captured as well 2023-12-30 13:55:15 +01: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 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 * project files updated 2023-03-15 23:01:44 +01:00
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 * allow a nested function that calls itself can be converted to a function reference 2023-12-30 14:47:38 +01:00
procinfo.pas * also keep track of captured def (necessary when functions are captured) 2023-12-29 20:26:45 +01:00
psabiehpi.pas
pstatmnt.pas
psub.pas * Node dumps now output the convention if it's not pocall_default 2023-12-13 21:35:31 +00:00
psystem.pas
ptconst.pas * ensure that nothing assembly related is generated for generics when a typed constant (this also includes local variable initializations) are parsed 2019-11-21 21:44:16 +00:00
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
symtable.pas
symtype.pas
symutil.pas
syscinfo.pas m68k: basic DOS syscall generation for human68k 2023-11-30 23:43:27 +00:00
systems.inc + added ld_int_wasi constant. Register the WASI internal linker. 2023-12-24 12:18:15 +02:00
systems.pas human68k: this system has internal sysinit 2023-11-30 23:43:27 +00:00
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