fpc/compiler
2023-12-13 21:35:31 +00:00
..
aarch64 * a64: Node parser now attempts to directly create BIC, ORN and EON instructions 2023-11-08 21:07:00 +00:00
arm Fix for trunk arm STM optimize bug 2023-11-12 18:22:19 +00:00
armgen * a64: Porting of MatchOperand function from x86 that takes integer parameter 2023-10-22 12:16:50 +00:00
avr AVR optimization LdsMov2Lds 2023-12-02 18:22:35 +00:00
generic
html
i386 * Pass 2 can now be run multiple times when 2023-11-05 10:03:52 +00:00
i8086 * New "fast 3-component LEA hint" and "Icelake" CPU options 2023-10-29 10:26:52 +00:00
jvm
llvm LLVM: use llvm.dbg.declare instead of llvm.dbg.addr for variable declarations 2023-12-06 22:57:16 +01:00
loongarch64
m68k Add human68k OS to list of supported OSes for m68k GNU assembler 2023-12-01 22:12:58 +01:00
mips
msg * fix casing 2023-12-02 20:58:43 +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 Change AVOID_OVERFLOW to avoid warning about inequality being always true 2023-10-26 07:47:10 +00:00
riscv64
sparc
sparc64
sparcgen Handle unaligned copy in TCGSparcGen.g_concatcopy method 2023-07-16 01:31:09 -05:00
systems human68k: set default stack size to 16KiB 2023-12-03 12:14:22 +01:00
utils human68k: regenerated Makefiles 2023-11-30 23:43:27 +00:00
wasm32 + check whether all br instructions, generated by goto point to a pascal goto label 2023-10-22 05:23:04 +03:00
x86 * x86: Fixed inefficiencies revealed in "TEST/JNE/TEST/JNE" 2023-12-02 18:25:19 +00:00
x86_64 LLVM: fix currency parameters passed on the stack on x86-64 2023-11-05 11:30:19 +01:00
xtensa
z80
.gitignore
aasmbase.pas * fixed and enabled the is_pascal_goto_target check 2023-10-22 04:01:37 +03:00
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 * UpdateUsedRegsAndOptimize improved to clear aligns that don't have 2023-11-25 20:47:44 +00:00
aoptutils.pas
assemble.pas
blockutl.pas
browcol.pas
catch.pas - disabled installation of SIGINT signal handler for Darwin, because 2009-02-28 18:07:21 +00:00
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
comptty.pas
constexp.pas
COPYING.txt
cprofile.pas
crefs.pas
cresstr.pas
cscript.pas
cstreams.pas
cutils.pas
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas
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
fpcdefs.inc
fpchash.pas
fpcp.pas
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 * Allow to disable 8.3 filename search 2023-11-12 09:55:30 +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
macho.pas
machoutils.pas
Makefile human68k: regenerated Makefiles 2023-11-30 23:43:27 +00:00
Makefile.fpc
MPWMake
msgidx.inc regenerated msg*.inc files for the compiler after human68k merge 2023-12-01 01:38:56 +01:00
msgtxt.inc * fix casing 2023-12-02 20:58:43 +01:00
nadd.pas * check for *-1 multiplications after folding, resolves #40448 2023-11-12 22:30:43 +01:00
nbas.pas
ncal.pas
ncgadd.pas
ncgbas.pas
ncgcal.pas
ncgcnv.pas
ncgcon.pas
ncgflw.pas + introduced thlcgobj.a_jmp_always_pascal_goto - same as .a_jmp_always, but generated by a pascal goto statement 2023-10-22 04:12:59 +03:00
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
ncgset.pas
ncgutil.pas
ncgvmt.pas
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
nld.pas
nmat.pas
nmem.pas
nobj.pas
nobjc.pas
node.pas
nopt.pas
nset.pas * WebAssembly code generation for 'case' nodes changed to use labels 2021-10-22 17:31:04 +03:00
nutils.pas
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas + introduced methods for writing endian-specific integers to TObjSection 2023-11-02 13:15:44 +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 + added TWasmExeOutput class (not implemented, yet) 2023-11-17 00:12:18 +02:00
omfbase.pas
optbase.pas
optconstprop.pas
optcse.pas * fixed a div by zero error, when compiling a wasi-hosted compiler 2023-10-22 01:11:17 +03:00
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas m68k: initial compiler changes for Human68k (Sharp X68000) support 2023-11-30 23:43:27 +00: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
pdecsub.pas m68k: basic DOS syscall generation for human68k 2023-11-30 23:43:27 +00:00
pdecvar.pas
pexports.pas
pexpr.pas * fix output position of deprecated hint for certain cases where it was wrong, resolves #40534 2023-12-03 11:35:03 +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
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
ppcx64.lpi
ppcx64llvm.lpi
ppcxtensa.lpi
ppcz80.lpi
ppheap.pas
ppu.pas
procdefutil.pas
procinfo.pas
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
ptype.pas * fix #40504: always provide the global enum symbol for anonymous enum types (e.g. as part of a set) 2023-11-07 20:33:55 +01:00
raatt.pas
rabase.pas
rasm.pas
rautils.pas
README.txt
rescmn.pas
rgbase.pas
rgobj.pas
scandir.pas
scanner.pas * patch by lagprogramming: Improvement of function SetCompileModeSwitch, resolves #40525 2023-11-19 13:37:37 +01:00
switches.pas
symbase.pas
symconst.pas
symcreat.pas
symdef.pas
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 tabs to spaces cosmetics. no functional change 2023-11-30 23:43:27 +00: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