fpc/compiler
2023-08-15 21:33:58 +00: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
i8086
jvm
llvm LLVM: LLVM 17.0 support 2023-08-01 22:19:55 +02:00
loongarch64 Applied fix for binutils 2.41 for loongarch64 suggested by Jinyang He 2023-08-11 08:58:40 +00:00
m68k
mips Fix storing of unaligned 64-bit to memory 2023-04-21 10:32:13 +01:00
msg [AVR] Add command line options to selectively remove portions of the RTL startup code. 2023-08-15 21:33:58 +00:00
powerpc
powerpc64
ppcgen
riscv Fix fullcycle compilation error due to -Sew option 2023-06-14 08:19:06 +02:00
riscv32
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 [AVR] Add command line options to selectively remove portions of the RTL startup code. 2023-08-15 21:33:58 +00:00
utils [AVR] Add command line options to selectively remove portions of the RTL startup code. 2023-08-15 21:33:58 +00:00
wasm32 Merge remote-tracking branch 'origin/main' into wasm_js_promise_integration 2023-06-17 17:11:23 +03:00
x86 * Improvement to TEST/JNE/TEST/JNE code to be more accurate where register deallocations are concerned 2023-08-12 23:43:05 +00:00
x86_64 * fix parameter alignment on x86_64 when more than 6 parameters are involved (aka the stack is used) 2023-08-03 22:34:28 +02: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
aasmdef.pas
aasmsym.pas
aasmtai.pas
aggas.pas
aopt.pas
aoptbase.pas
aoptda.pas
aoptobj.pas
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
cepiktimer.pas
cfidwarf.pas
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
cgutils.pas
cmsgs.pas
comphook.pas
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
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas
dbgdwarfconst.pas
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
fpchash.pas
fpcp.pas
fpkg.pas
fppu.pas * $NAMESPACES directive 2023-07-26 09:45:53 +02:00
gendef.pas
globals.pas * $NAMESPACES directive 2023-07-26 09:45:53 +02: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
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
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 [AVR] Add command line options to selectively remove portions of the RTL startup code. 2023-08-15 21:33:58 +00:00
msgtxt.inc [AVR] Add command line options to selectively remove portions of the RTL startup code. 2023-08-15 21:33:58 +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
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
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
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
ngenutil.pas
ngtcon.pas
ninl.pas default values: store as staticvarsyms in staticsymtable 2023-08-15 21:13:48 +02:00
nld.pas
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 Add missing swaping in case of different endianess of stab entry inside TInternalAssembler.WriteStab 2023-04-30 21:23:06 +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
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 [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
optvirt.pas
owar.pas
owbase.pas
owomflib.pas
parabase.pas
paramgr.pas
parser.pas
pass_1.pas
pass_2.pas
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 * 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 * Unicode resource strings 2023-07-25 16:06:53 +02:00
pgentype.pas
pgenutil.pas * Allow hidden units to be found when replaying generic 2023-07-27 18:40:34 +02: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
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
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
ppcx64.lpi * Unicode resource strings 2023-07-25 16:06:53 +02:00
ppcx64llvm.lpi
ppcxtensa.lpi
ppcz80.lpi
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
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 * Forbid use of string alias in system unit 2023-07-22 08:26:22 +00:00
raatt.pas
rabase.pas
rasm.pas
rautils.pas
README.txt
rescmn.pas
rgbase.pas
rgobj.pas
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
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
tokens.pas + also allow declaring an external as 'suspending first' 2023-06-13 09:56:44 +03:00
triplet.pas
verbose.pas Disable substitution by environment variables in message comment related functions 2023-06-07 01:02:28 +02:00
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