fpc/compiler
2018-11-01 20:49:15 +00:00
..
aarch64 * take care of the fact that x and w registers overlap when carrying out the Str/LdrAdd/Sub2Str/Ldr Postindex optimization 2018-10-24 17:38:51 +00:00
arm Fix typecast in FindRegDeAlloc call 2018-10-31 23:18:09 +00:00
avr Change RemoveCurrentP parameter type to tai, because GetNextInstruction does not always return a taicpu, adapt code in avr/aoptcpu unit 2018-10-31 23:15:22 +00:00
generic
html
i386 * ttryfinallynode now inherits from tbinarynode instead of tloopnode, as its 2018-11-01 13:19:33 +00:00
i8086 Add global range check disable for i8086 cgcpu and x86 nx86add units 2018-10-31 23:20:29 +00:00
jvm * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
llvm * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
m68k Remove another wrong typecast when testing that a tai is an instruction 2018-11-01 07:01:02 +00:00
mips Fix for bug report #34380 2018-10-18 20:21:54 +00:00
msg Add -Tlinux and -Tembedded help lines for riscv32 and riscv64 compilers 2018-10-16 10:41:27 +00:00
powerpc * avoid range check errors 2018-10-20 10:17:34 +00:00
powerpc64 Fix for bug report #34380 2018-10-18 20:21:54 +00:00
ppcgen * GAS readers and writers can handle section flags 2018-10-20 18:23:24 +00:00
riscv * fixed compilation with -O3 (one false positive, one real error) 2018-11-01 20:39:38 +00:00
riscv32 Fix for bug report #34380 2018-10-18 20:21:54 +00:00
riscv64 Fix for bug report #34380 2018-10-18 20:21:54 +00:00
sparc
sparc64
sparcgen * fixed compilation with -O3 (one false positive, one real error) 2018-11-01 20:39:38 +00:00
systems * Create the ".note.gnu.build-id" section for android. It fixes debugging of shared libs in Android Studio. 2018-10-19 20:23:08 +00:00
utils Only call moved if len>0, as otherwise astring local variable is nil, which leads to a range check error for astring[1] 2018-11-01 07:09:47 +00:00
x86 - x86 align does not use a register anymore, code removed 2018-11-01 20:49:15 +00:00
x86_64 * ttryfinallynode now inherits from tbinarynode instead of tloopnode, as its 2018-11-01 13:19:33 +00:00
aasmbase.pas
aasmcnst.pas + add a method to emit a reference to a pooled shortstring constant (aka one per unit); very useful for new RTTI tables to avoid poluting the binary with string constants 2018-08-29 19:20:20 +00:00
aasmdata.pas * fixed some issues to get correct values of section_count, works better than before but it is still not perfect for unknown reasons 2018-09-12 20:33:18 +00:00
aasmdef.pas
aasmsym.pas
aasmtai.pas + introduce tai_align_abstract.create_max which limits the maximal number of bytes being inserted for alignment 2018-11-01 20:49:15 +00:00
aggas.pas * GAS readers and writers can handle section flags 2018-10-20 18:23:24 +00:00
aopt.pas
aoptbase.pas
aoptda.pas
aoptobj.pas Change RemoveCurrentP parameter type to tai, because GetNextInstruction does not always return a taicpu, adapt code in avr/aoptcpu unit 2018-10-31 23:15:22 +00:00
aoptutils.pas
assemble.pas
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas * fixed some issues to get correct values of section_count, works better than before but it is still not perfect for unknown reasons 2018-09-12 20:33:18 +00:00
cfidwarf.pas
cfileutl.pas
cg64f32.pas
cgbase.pas
cghlcpu.pas
cgobj.pas * Optimized generic implementations of tcg.a_op_const_ref() and tcg.a_op_reg_ref() for PIC and CPUs which need 2 or more instructions to load a symbol's value by reference. 2018-10-27 11:32:22 +00:00
cgutils.pas
cmsgs.pas
comphook.pas
compiler.pas
compinnr.pas
comprsrc.pas
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas * fixed some issues to get correct values of section_count, works better than before but it is still not perfect for unknown reasons 2018-09-12 20:33:18 +00:00
cscript.pas
cstreams.pas
cutils.pas * Fixed overflow error for the qword version of align() when i=0. 2018-10-17 13:18:45 +00:00
cwindirs.pp
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas Use correct field for sl_absolutetype or sl_typeconv ppropaccesslistitem type (revealed by compilation with -CriotR) 2018-10-31 14:43:18 +00:00
dbgstabs.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
dbgstabx.pas
defcmp.pas * make "formal const/var" parameters the least preferred conversion 2018-10-21 21:02:17 +00:00
defutil.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
dirparse.pas
elfbase.pas
entfile.pas Use pdword to avoid range check erro in tentryfile.getdword method 2018-10-31 09:59:45 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas
fpccrc.pas
fpcdefs.inc * Enabled safecall support for aarch64 to be on par with other cpus. 2018-10-08 08:37:18 +00:00
fpcp.pas
fpkg.pas
fppu.pas
gendef.pas
globals.pas
globstat.pas
globtype.pas Set MaxLocalsSize according to address size not register size 2018-10-13 12:00:31 +00:00
hlcg2ll.pas
hlcgobj.pas
htypechk.pas * make "formal const/var" parameters the least preferred conversion 2018-10-21 21:02:17 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas
macho.pas
machoutils.pas
Makefile Add explicit rtlclean/rtl targets in fullcycle rule if DOWPOCYCLE is set 2018-10-31 15:50:26 +00:00
Makefile.fpc Add explicit rtlclean/rtl targets in fullcycle rule if DOWPOCYCLE is set 2018-10-31 15:50:26 +00:00
MPWMake
msgidx.inc Add -Tlinux and -Tembedded help lines for riscv32 and riscv64 compilers 2018-10-16 10:41:27 +00:00
msgtxt.inc Add -Tlinux and -Tembedded help lines for riscv32 and riscv64 compilers 2018-10-16 10:41:27 +00:00
nadd.pas * avoid range check errors 2018-10-20 10:17:34 +00:00
nbas.pas * forgot to commit extension to tspecializenode 2018-09-21 15:17:52 +00:00
ncal.pas * replaced "is" test with faster field value test 2018-11-01 20:39:41 +00:00
ncgadd.pas
ncgbas.pas * fixed some issues to get correct values of section_count, works better than before but it is still not perfect for unknown reasons 2018-09-12 20:33:18 +00:00
ncgcal.pas o fix several issues with floating point exceptions 2018-08-19 15:26:00 +00:00
ncgcnv.pas
ncgcon.pas
ncgflw.pas * ttryfinallynode now inherits from tbinarynode instead of tloopnode, as its 2018-11-01 13:19:33 +00:00
ncghlmat.pas
ncginl.pas
ncgld.pas * Fixed bug #17413 (and the tw17413 test) for aarch64 by adding additional check. 2018-10-16 21:16:30 +00:00
ncgmat.pas
ncgmem.pas
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * Reverted r39947. According to Sven, the $self parameters is not required to be first parameter in RTTI. Appropriate tests will be fixed. 2018-10-17 08:52:57 +00:00
ncgset.pas
ncgutil.pas * aarch64: Fixed loading of a function result which is returned in 4 32-bit MM registers to 2 64-bit int registers. Bug #30329. 2018-10-17 11:41:34 +00:00
ncgvmt.pas * move getrecorddef and gettabledef from TVMTWritter to symdef as they might be used from the RTTI as well 2018-08-29 19:21:23 +00:00
ncnv.pas * handle widechar constants directly in the scanner, instead of in the 2018-10-21 17:34:00 +00:00
ncon.pas
nflw.pas * ttryfinallynode now inherits from tbinarynode instead of tloopnode, as its 2018-11-01 13:19:33 +00:00
ngenutil.pas
ngtcon.pas * support for constant char/bool/enum indices in typed constant 2018-10-21 18:48:41 +00:00
ninl.pas Also fix first_abs_real like in rev 39988 2018-10-20 18:11:25 +00:00
nld.pas * fix for Mantis #34355: correctly check whether the array constructor is empty (aka []) or not 2018-10-07 12:25:24 +00:00
nmat.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
nmem.pas
nobj.pas
nobjc.pas
node.pas * allow nil to be assigned to generic types, resolves #34037 2018-10-14 07:38:13 +00:00
nopt.pas
nset.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
nutils.pas * ttryfinallynode now inherits from tbinarynode instead of tloopnode, as its 2018-11-01 13:19:33 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas
ogcoff.pas
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
ogomf.pas
omfbase.pas
optbase.pas Complement commit 40104, by changing type of executionweight in toptinfo record and adapt pass_2 code 2018-10-31 15:47:53 +00:00
optconstprop.pas
optcse.pas * correctly take care of short boolean evaluation when rearranging nodes during CSE 2018-09-25 20:31:03 +00:00
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas * Reverted r39961. 2018-10-17 18:56:29 +00:00
optloadmodifystore.pas
optloop.pas
opttail.pas
optutils.pas Use longint type instead of AWord for Initial parameter in CalcExecutionWeigths (to avoid range error for avr compiler) 2018-10-31 10:21:51 +00:00
optvirt.pas
owar.pas
owbase.pas
owomflib.pas
parabase.pas
paramgr.pas
parser.pas
pass_1.pas
pass_2.pas Complement commit 40104, by changing type of executionweight in toptinfo record and adapt pass_2 code 2018-10-31 15:47:53 +00:00
pbase.pas
pcp.pas
pdecl.pas
pdecobj.pas
pdecsub.pas * only i386 uses oldfpccall for interrupts, all other architectures use now stdcall, resolves #34317 2018-09-27 21:00:35 +00:00
pdecvar.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
pexports.pas
pexpr.pas * handle widechar constants directly in the scanner, instead of in the 2018-10-21 17:34:00 +00:00
pgentype.pas
pgenutil.pas
pinline.pas * fix for Mantis #34333: improve error output for incorrect calls to Copy() 2018-09-26 21:33:51 +00:00
pkgutil.pas
pmodules.pas * two comment spelling fixes. Mantis #34092 & #34097 2018-08-08 08:39:20 +00:00
pp.lpi
pp.pas
pparautl.pas
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi * version update 2018-10-28 16:21:06 +00:00
ppcriscv32.lpi
ppcriscv64.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcx64.lpi
ppcx64llvm.lpi
ppheap.pas
ppu.pas * ttryfinallynode now inherits from tbinarynode instead of tloopnode, as its 2018-11-01 13:19:33 +00:00
procinfo.pas
pstatmnt.pas
psub.pas * ttryfinallynode now inherits from tbinarynode instead of tloopnode, as its 2018-11-01 13:19:33 +00:00
psystem.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
ptconst.pas
ptype.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
raatt.pas * GAS readers and writers can handle section flags 2018-10-20 18:23:24 +00:00
rabase.pas
rasm.pas
rautils.pas Write real atomic operations, and add memory barrier operations. 2018-07-29 16:43:09 +00:00
README.txt
rescmn.pas
rgbase.pas
rgobj.pas * avoid overflows of execution weight 2018-08-16 20:45:36 +00:00
scandir.pas + basic infrastructure to generate code for floating point exception 2018-08-19 10:54:45 +00:00
scanner.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
switches.pas
symbase.pas + add a comment to the destructor of tsymtable so that others (and maybe me a well) will hopefully see that the destructor of that class is not completely trivial! 2018-08-31 19:16:48 +00:00
symconst.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
symcreat.pas
symdef.pas Avoid overflow in code 2018-10-31 15:49:14 +00:00
symsym.pas
symtable.pas * fix big endian targets by using an explicit assignment with typecast instead of an absolute variable 2018-09-10 21:12:29 +00:00
symtype.pas
symutil.pas
syscinfo.pas
systems.inc + added support for x86_64-android target. 2018-10-17 16:56:27 +00:00
systems.pas + added support for x86_64-android target. 2018-10-17 16:56:27 +00:00
tgobj.pas * Fixed range check errors. 2018-10-17 19:12:27 +00:00
tokens.pas
verbose.pas
version.pas Merged riscv_new branch 2018-09-26 19:49:08 +00:00
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