fpc/compiler
2020-04-26 16:40:21 +00:00
..
aarch64 + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
arm + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
armgen * TARMAsmOptimizer.RemoveSuperfluousMove should not mess with PC 2020-04-19 11:04:31 +00:00
avr * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
generic
html
i386 + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
i8086
jvm + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
llvm * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
m68k + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
mips + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
msg * synchronized with trunk 2020-04-21 23:36:44 +00:00
powerpc + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
powerpc64 * split i/t_darwin from i/t_bsd, as they don't have that much in common 2020-03-29 18:27:27 +00:00
ppcgen * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
riscv * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
riscv32
riscv64
sparc + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
sparc64 + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
sparcgen + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
systems * moved the ZX Spectrum program load address lower, so we could fit more code and data 2020-04-26 12:30:05 +00:00
utils * synchronized with trunk 2020-04-21 23:36:44 +00:00
x86 * synchronized with trunk 2020-04-25 21:13:31 +00:00
x86_64 + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
xtensa + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
z80 - removed commented out code from tcgz80.a_load_reg_cgpara 2020-04-26 16:40:21 +00:00
aasmbase.pas * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
aasmcfi.pas
aasmcnst.pas * due to an apparent bug in the clang assembler for COFF when assembling ADRP instructions we can't use symbols that are offset into their section 2020-04-21 06:06:31 +00:00
aasmdata.pas
aasmdef.pas
aasmsym.pas
aasmtai.pas + implement compiler support for SEH on Win64 2020-04-21 06:06:05 +00:00
aggas.pas * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
aopt.pas * track used register better: if a deallocation is moved/removed, the used register may not be removed from the current register used register set 2020-02-23 18:24:31 +00:00
aoptbase.pas
aoptda.pas
aoptobj.pas
aoptutils.pas
assemble.pas * for PE+ specific checks use a constant in systems.pas instead of an explicit list (easier to extend this way) 2020-04-21 06:04:10 +00:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas
cepiktimer.pas
cfidwarf.pas
cfileutl.pas
cg64f32.pas
cgbase.pas + implemented tcgz80.a_loadaddr_ref_reg for symbol references 2020-04-11 01:00:46 +00:00
cgexcept.pas
cghlcpu.pas
cgobj.pas * fix warnings in cgobj for 8-bit alu cpus 2020-04-19 04:30:08 +00:00
cgutils.pas
cmsgs.pas
comphook.pas
compiler.pas * fix morphos info unit name after r44454 2020-03-31 05:12:59 +00:00
compinnr.pas
comprsrc.pas
constexp.pas
COPYING.txt
cpid.pas
cprofile.pas
crefs.pas
cresstr.pas
cscript.pas
cstreams.pas
cutils.pas
cwindirs.pp
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas
dbgstabs.pas * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
dbgstabx.pas * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
defcmp.pas
defutil.pas * extract calculation of a NOT value to a separate function 2020-04-24 14:08:58 +00:00
dirparse.pas
dwarfbase.pas
elfbase.pas
entfile.pas * compilation fixed 2020-04-03 20:25:31 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas
fpccrc.pas
fpcdefs.inc + enabled FPU emulation for the Z80 2020-04-22 22:18:33 +00:00
fpcp.pas
fpkg.pas
fppu.pas
gendef.pas + implement initial compiler support for Win64 on Aarch64 2020-04-21 06:04:22 +00:00
globals.pas * synchronized with trunk 2020-04-18 23:47:30 +00:00
globstat.pas
globtype.pas * fix for Mantis #36935: apply patch by J. Gareth Moreton to fix a typo in cs_opt_remove_empty_proc 2020-04-20 18:42:30 +00:00
hlcg2ll.pas
hlcgobj.pas * Xtensa: fix flag handling: B0 is considered as default flags 2020-04-11 13:18:47 +00:00
htypechk.pas * when checking for an existing operator overload for the assignment operator, check for the correct variant (explicit or not) matching the overload 2020-04-17 14:44:14 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas + supported scripted sdcc-sdar 2020-04-25 15:39:46 +00:00
macho.pas
machoutils.pas
Makefile * synchronized with trunk 2020-04-21 23:36:44 +00:00
Makefile.fpc + added z80 to cycletargets 2020-04-19 04:26:41 +00:00
MPWMake
msgidx.inc * regenerate msg{idx,txt}.inc 2020-04-21 06:06:24 +00:00
msgtxt.inc * regenerate msg{idx,txt}.inc 2020-04-21 06:06:24 +00:00
nadd.pas + set expectloc in the first pass of the addnode for small CPUs for procvardef comparisons 2020-04-23 16:05:23 +00:00
nbas.pas
ncal.pas * fix for Mantis #36935: apply patch by J. Gareth Moreton to fix a typo in cs_opt_remove_empty_proc 2020-04-20 18:42:30 +00:00
ncgadd.pas
ncgbas.pas
ncgcal.pas * add support for creating non-address-only procvars to 2020-04-02 21:21:36 +00:00
ncgcnv.pas + Xtensa: the boolean extension is used as flags 2020-04-03 20:15:22 +00:00
ncgcon.pas
ncgflw.pas
ncghlmat.pas
ncginl.pas
ncgld.pas * add support for creating non-address-only procvars to 2020-04-02 21:21:36 +00:00
ncgmat.pas
ncgmem.pas
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * add support for creating non-address-only procvars to 2020-04-02 21:21:36 +00:00
ncgset.pas
ncgutil.pas * Xtensa: fix flag handling: B0 is considered as default flags 2020-04-11 13:18:47 +00:00
ncgvmt.pas * fix for Mantis #36935: apply patch by J. Gareth Moreton to fix a typo in cs_opt_remove_empty_proc 2020-04-20 18:42:30 +00:00
ncnv.pas * simplify tc_bool_2_int 2020-04-12 20:50:39 +00:00
ncon.pas
nflw.pas * set implicitframe for copied tryfinally nodes as well 2020-04-21 06:07:03 +00:00
ngenutil.pas * allow setting the stack size from FPC 2020-04-26 16:04:29 +00:00
ngtcon.pas * add support for creating non-address-only procvars to 2020-04-02 21:21:36 +00:00
ninl.pas + retinparam fixes for exp, frac, int, cos, sin, arctan, ln, round and trunc 2020-04-23 00:25:02 +00:00
nld.pas * cosmetics 2020-04-03 20:15:25 +00:00
nmat.pas * extract calculation of a NOT value to a separate function 2020-04-24 14:08:58 +00:00
nmem.pas
nobj.pas * add support for creating non-address-only procvars to 2020-04-02 21:21:36 +00:00
nobjc.pas
node.pas
nopt.pas
nset.pas
nutils.pas * do not create full copies of objects when object checking is on, resolves #36863 2020-04-05 16:26:10 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas * it's rather useless that sectiontype2options is virtual as we can't use a class type, not to mention that the classes doing the overriding are for the internal assemblers/linkers, but we need it also for external 2020-04-21 06:05:06 +00:00
ogcoff.pas + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
ogelf.pas
oglx.pas
ogmacho.pas + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
ogmap.pas
ognlm.pas + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
ogomf.pas + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
omfbase.pas
optbase.pas
optconstprop.pas
optcse.pas
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas + allow setting the heap size for the ZX Spectrum target 2020-04-26 14:58:47 +00:00
optloadmodifystore.pas
optloop.pas + OptimizeForLoop: convert for-loops into zero-based backward for-loops if possible, for most architectures, this results in simpler code 2020-03-08 14:30:59 +00:00
opttail.pas
optutils.pas
optvirt.pas
owar.pas
owbase.pas
owomflib.pas
parabase.pas
paramgr.pas
parser.pas
pass_1.pas * fixed spurious "Expectloc is not set in firstpass" when compiler is compiled with EXTDEBUG, and 2020-04-24 21:37:13 +00:00
pass_2.pas
pbase.pas
pcp.pas
pdecl.pas * throw an error if the forward interface type and the actual interface type do not match, resolves #36720 2020-02-21 20:35:27 +00:00
pdecobj.pas
pdecsub.pas * fix WinAPI directive: the purpose is to present the OS' default calling convention which for Windows means stdcall (at least on those platforms that support stdcall) on other platforms it is cdecl (for now) 2020-04-20 18:29:28 +00:00
pdecvar.pas
pexports.pas
pexpr.pas
pgentype.pas
pgenutil.pas
pinline.pas
pkgutil.pas
pmodules.pas * Windows on Aarch64 requires a relocation section 2020-04-21 06:04:37 +00:00
pp.lpi
pp.pas * synchronize with trunk 2020-03-29 16:24:32 +00:00
pparautl.pas
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcriscv32.lpi
ppcriscv64.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcx64.lpi
ppcx64llvm.lpi
ppcxtensa.lpi + Xtensa: lazarus project 2020-03-20 22:34:30 +00:00
ppcz80.lpi * lazarus version updated 2020-04-03 20:25:47 +00:00
ppheap.pas
ppu.pas
procdefutil.pas
procinfo.pas
psabiehpi.pas
pstatmnt.pas
psub.pas + implement compiler support for SEH on Win64 2020-04-21 06:06:05 +00:00
psystem.pas * synchronize with trunk 2020-04-02 22:55:11 +00:00
ptconst.pas
ptype.pas
raatt.pas
rabase.pas
rasm.pas
rautils.pas * fixed handling of 16-bit consts in the Z80 asm reader 2020-04-18 23:37:10 +00:00
README.txt
rescmn.pas
rgbase.pas
rgobj.pas
scandir.pas
scanner.pas * add support for AND, OR, XOR and NOT of integer values in preprocessor directives (Delphi allows that as well) 2020-04-24 14:09:04 +00:00
switches.pas
symbase.pas
symconst.pas
symcreat.pas
symdef.pas * arm: more fixes for fpu_fpv4_sp_d16 2020-04-12 18:05:50 +00:00
symsym.pas
symtable.pas
symtype.pas
symutil.pas
syscinfo.pas
systems.inc + supported scripted sdcc-sdar 2020-04-25 15:39:46 +00:00
systems.pas + added system_z80_embedded to systems_embedded 2020-04-26 14:45:31 +00:00
tgobj.pas tgobj: Change direction of stack. 2020-03-21 20:59:32 +00:00
tokens.pas * fix precedence of IS operator, resolves #35909 2020-03-06 10:10:58 +00:00
verbose.pas
version.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