fpc/compiler
2021-02-14 21:25:01 +00:00
..
aarch64 * Removed/ifdefed the assigned and unused variables. 2021-01-24 13:58:17 +00:00
arm * arm thumb1: several fixes for the internal assembler writer 2021-02-14 17:52:26 +00:00
armgen * arm/aarch64: patch by J. Gareth Moreton: fix register allocation information for Mov2None 2, should resolve #38055 2021-01-20 21:14:09 +00:00
avr * Removed more assigned but unused vars. 2021-01-24 14:05:21 +00:00
generic * Give access to CPU specific fields of tsettings record 2020-11-16 22:34:38 +00:00
html
i386 + AddLea2Lea optimization 2021-01-08 22:22:56 +00:00
i8086 * Corrected visibility of overridden methods. 2021-01-24 12:41:12 +00:00
jvm * Removed/ifdefed the assigned and unused variables. 2021-01-24 13:58:17 +00:00
llvm * llvm: only set custom parameter alignments for byval parameters, the rest 2021-01-06 22:35:40 +00:00
m68k m68k: write inline floating point immediates as hex consts, instead of scientific notation. the scientific notation format parsing depends on the libc the assembler was linked against, which can lead to varying results and compile errors 2021-02-08 05:01:45 +00:00
mips * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
msg + throw an error if hardware floating point operations are used in thumb(-1) mode, this is not supported 2021-02-13 22:17:35 +00:00
powerpc * turn the recently added 3357 warning into an error, to avoid another compiler IE later 2020-10-14 01:52:12 +00:00
powerpc64 * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
ppcgen * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
riscv * pass lp64d to GNU AS for abi_riscv_hf to get the right ABI set 2020-11-25 20:20:08 +00:00
riscv32 * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
riscv64 * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
sparc * arm: taicpu uses set instead of boolean to store instruction states 2021-02-14 15:51:48 +00:00
sparc64 * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
sparcgen Try to fix sparc32 code generation error for overflow test 2020-12-16 23:16:37 +00:00
systems + patch by Dimitrios Chr. Ioannidis: include dwar-3 sections in avr-embedded linker script 2021-02-12 21:39:31 +00:00
utils * create \index entries in the messages.inc for an index of message texts and numbers in the user manual 2021-02-06 16:59:02 +00:00
x86 * Removed in_x86mm_last (the duplicate no and unused) from the tinlinenumber enum. 2021-01-24 14:28:49 +00:00
x86_64 * x86: some fixes to enable 8 and 16 bit operations 2021-01-16 22:46:25 +00:00
xtensa + Xtensa: support large stack frames for the call0 abi 2020-12-25 18:18:09 +00:00
z80 Fix z80 compiler failure after change to ConcatConstSymbol in commit #47668 2020-12-03 11:05:36 +00:00
aasmbase.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
aasmcfi.pas
aasmcnst.pas * allow sub/add nodes in constant pointer expressions, resolves #34027 2021-02-05 22:10:27 +00:00
aasmdata.pas
aasmdef.pas
aasmsym.pas
aasmtai.pas + add endsym to ConcatConstSymbol 2020-12-02 21:44:12 +00:00
aggas.pas * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
aopt.pas * (slight modified) patch by J. Gareth Moreton to reduce number of assembler optimizer passes, resolves #37959 2020-10-20 20:03:25 +00:00
aoptbase.pas
aoptda.pas
aoptobj.pas Fix compilation with -dALLOCREGDEBUG 2021-01-08 11:13:43 +00:00
aoptutils.pas
assemble.pas * arm: taicpu uses set instead of boolean to store instruction states 2021-02-14 15:51:48 +00:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas
cepiktimer.pas * do not include fpcdefs in the cepiktimer unit 2020-11-28 16:02:49 +00:00
cfidwarf.pas * the size of the CIE_pointer in an FDE is always 32 bit 2021-02-03 20:05:56 +00:00
cfileutl.pas
cg64f32.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
cgbase.pas * AArch64: added SIMD instructions (only plain ARMv8-A for now) 2020-10-15 20:29:36 +00:00
cgexcept.pas
cghlcpu.pas
cgobj.pas * patch Christo Crause: Use LDS for 8 bit references, resolves #38173 2020-12-06 16:40:30 +00:00
cgutils.pas
cmsgs.pas
comphook.pas + added coloured compiler output support for OS/2 and DOS targets, platform-specific parts refactored to a standalone unit to remove the heap of ifdefs in unit comphook 2020-11-24 23:09:01 +00:00
compiler.pas
compinnr.pas + added explanation for min/max intrinsics 2020-12-07 21:31:07 +00:00
comprsrc.pas
comptty.pas + added coloured compiler output support for OS/2 and DOS targets, platform-specific parts refactored to a standalone unit to remove the heap of ifdefs in unit comphook 2020-11-24 23:09:01 +00:00
constexp.pas
COPYING.txt
cprofile.pas
crefs.pas
cresstr.pas
cscript.pas * quote assembly filenames in Unix script, fixes sh errors with smartlinked small filenames like unitname(1), etc 2018-01-06 10:17:18 +00:00
cstreams.pas * use AnsiString for file names to overcome length limitations 2020-10-31 19:54:41 +00:00
cutils.pas - remove unused trimbspace 2020-10-30 22:10:56 +00:00
dbgbase.pas * Reworked the optimization of unused $parentfp for nested routines. 2020-05-19 13:17:47 +00:00
dbgcodeview.pas * Fixed value of the LF_PAD13 enum element. 2021-01-24 14:29:39 +00:00
dbgdwarf.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
dbgstabs.pas Correct check of stringtype inside use_tag_prefix function 2021-01-11 22:17:09 +00:00
dbgstabx.pas
defcmp.pas * weight currency->float conversions the same regardless if 2021-01-05 22:39:16 +00:00
defutil.pas * generate more efficient code for trunc(currency), trunc(comp), and 2020-12-27 13:18:47 +00:00
dirparse.pas * reverted r47862 2020-12-28 16:18:55 +00:00
dwarfbase.pas
elfbase.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
entfile.pas Fix compilation with DEBUG_PPU macro set 2020-11-28 12:06:36 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas * fix several double ; 2020-05-24 17:52:09 +00:00
fpccrc.pas
fpcdefs.inc Add setting of all optimization debug macros with single DEBUG_ALL_OPT macro 2021-01-08 11:05:29 +00:00
fpcp.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
fpkg.pas
fppu.pas * Improve Test_Double_checksum with Test_Double_checksum_write CRC testing code. 2020-11-28 18:32:46 +00:00
gendef.pas
globals.pas sinclairql: added platform specific options to allow specifying executable metadata format 2020-11-25 01:48:36 +00:00
globstat.pas
globtype.pas + modified patch by Christo Crause: if the target support, the switch -Xu can be used to generate the executable as an uf2 file 2021-01-24 14:21:03 +00:00
hlcg2ll.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
hlcgobj.pas Fix clearing of single type register variable in initialize_regvars method for ARM cpu (with -Ooregvar) 2021-01-18 23:29:24 +00:00
htypechk.pas * fix for Mantis #38310: ignore procsyms that have no procdefs for checking overloads, or more precisely to stop checking for overloads; these are generic dummy symbols 2021-01-05 20:58:46 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas + read 64-Bit ELF executable info correctly 2020-12-06 10:23:18 +00:00
macho.pas Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
machoutils.pas
Makefile * correctly handle multiple codesign binaries in the PATH 2021-02-13 08:19:30 +00:00
Makefile.fpc * correctly handle multiple codesign binaries in the PATH 2021-02-13 08:19:30 +00:00
MPWMake
msgidx.inc + throw an error if hardware floating point operations are used in thumb(-1) mode, this is not supported 2021-02-13 22:17:35 +00:00
msgtxt.inc + throw an error if hardware floating point operations are used in thumb(-1) mode, this is not supported 2021-02-13 22:17:35 +00:00
nadd.pas * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
nbas.pas * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
ncal.pas * Fixed r48650. 2021-02-12 11:26:37 +00:00
ncgadd.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
ncgbas.pas * Renamed fc_block_with_exit to fc_no_direct_exit to expand its usage. 2020-12-10 17:38:37 +00:00
ncgcal.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
ncgcnv.pas
ncgcon.pas * fix proposed by Christo Crause: properly handle pointer constant nodes on avr, resolves #38321 2021-01-06 12:52:36 +00:00
ncgflw.pas * Renamed fc_block_with_exit to fc_no_direct_exit to expand its usage. 2020-12-10 17:38:37 +00:00
ncghlmat.pas
ncginl.pas * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
ncgld.pas * use fld/fst on i386 to copy doubles 2020-09-29 20:59:29 +00:00
ncgmat.pas * simplify tcgunaryminusnode.second_integer 2020-10-22 21:25:36 +00:00
ncgmem.pas
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncgopt.pas
ncgrtti.pas
ncgset.pas
ncgutil.pas * take care of po_noreturn in more cases 2020-11-28 16:02:51 +00:00
ncgvmt.pas * properly mangle interface wrapper names to avoid duplicate label errors, resolves #38385 2021-01-24 21:32:27 +00:00
ncnv.pas + throw a warning in ISO mode if a constant string is assigned to a char and the sizes do not match, resolves #38439 2021-02-09 20:48:27 +00:00
ncon.pas * handle generic with ord call of sub-range and enumeration data excluding 0 correctly, resolves #38412 2021-01-29 21:31:59 +00:00
nflw.pas * Removed/ifdefed the assigned and unused variables. 2021-01-24 13:58:17 +00:00
ngenutil.pas * naturally align threadvar lists/tables 2020-10-15 20:29:32 +00:00
ngtcon.pas * allow sub/add nodes in constant pointer expressions, resolves #34027 2021-02-05 22:10:27 +00:00
ninl.pas * generate more efficient code for trunc(currency), trunc(comp), and 2020-12-27 13:18:47 +00:00
nld.pas * factored out the creation of loadnodes for special variables/parameters 2020-12-27 13:18:56 +00:00
nmat.pas * do an unsigned division if one operand is unsigned an the other 2020-12-16 21:55:05 +00:00
nmem.pas * removed accidently committed printnode 2021-01-31 13:19:55 +00:00
nobj.pas
nobjc.pas
node.pas Fix pos field closing in XML node output after commit 47720 2020-12-09 12:36:46 +00:00
nopt.pas
nset.pas
nutils.pas * factored out the creation of loadnodes for special variables/parameters 2020-12-27 13:18:56 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas + support R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX 2021-01-14 21:36:12 +00:00
ogcoff.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
ogomf.pas * Removed/ifdefed the assigned and unused variables. 2021-01-24 13:58:17 +00:00
ogrel.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
omfbase.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
optbase.pas
optconstprop.pas
optcse.pas + min/max intrinsics for internal use by the compiler 2020-12-05 22:00:58 +00:00
optdead.pas
optdeadstore.pas
optdfa.pas * do not check inlined exit nodes for unset results, resolves #38259 2020-12-31 15:52:02 +00:00
options.pas + throw an error if hardware floating point operations are used in thumb(-1) mode, this is not supported 2021-02-13 22:17:35 +00:00
optloadmodifystore.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
optloop.pas * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
opttail.pas
optutils.pas * correctly handle inlined exits in dfa, resolves #38259 2020-12-29 22:35:33 +00:00
optvirt.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
owar.pas
owbase.pas
owomflib.pas
parabase.pas
paramgr.pas
parser.pas * initialize current_settings as early as possible so cs_debugswitch is set correctly if needed 2021-02-14 21:25:01 +00:00
pass_1.pas
pass_2.pas * Renamed fc_block_with_exit to fc_no_direct_exit to expand its usage. 2020-12-10 17:38:37 +00:00
pbase.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
pcp.pas
pdecl.pas * Second patch xml-node-dump-defs.patch from J. Gareth Moreton from bug report 36882. 2020-12-02 21:01:40 +00:00
pdecobj.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
pdecsub.pas * throw a proper error if a contructur has a type parameter in delphi mode, resolves #37217 2021-01-08 14:19:19 +00:00
pdecvar.pas
pexports.pas * instead of blindly consuming whatever comes next trigger an explicit error if the parsed expression does not match for "INDEX ordexpr" or "NAME strexpr" 2021-01-02 23:23:08 +00:00
pexpr.pas * correctly handle the case should the generic dummy symbol be a procsym instead of a typesym 2021-01-02 23:23:34 +00:00
pgentype.pas
pgenutil.pas * Removed/ifdefed the assigned and unused variables. 2021-01-24 13:58:17 +00:00
pinline.pas * fixed type of size parameter passed to fpc_getmem() when translating 2020-11-08 22:42:38 +00:00
pkgutil.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
pmodules.pas * patch by Cyrax: forbid to use heaptrc and valgrind at the same time, resolves #36529 2020-11-11 20:55:03 +00:00
pp.lpi
pp.pas
pparautl.pas
ppc68k.lpi * version update 2020-11-29 09:40:54 +00:00
ppc8086.lpi * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips64el.lpi
ppcmips.lpi
ppcmipsel.lpi * project file updates 2012-09-08 21:58:45 +00:00
ppcppc64.lpi
ppcppc64le.lpi + project file for PowerPC64LE 2020-12-06 10:23:17 +00:00
ppcppc.lpi
ppcriscv32.lpi
ppcriscv64.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcx64.lpi
ppcx64llvm.lpi
ppcxtensa.lpi
ppcz80.lpi
ppheap.pas
ppu.pas * have the generic dummy symbols for procsyms keep track of their overloaded generic procsyms so that they can be easily found (will be needed for implicit specializations) 2021-01-06 12:57:59 +00:00
procdefutil.pas * correctly set the generic related defoptions for an outlined procdef 2020-06-13 18:42:26 +00:00
procinfo.pas
psabiehpi.pas * Removed/ifdefed the assigned and unused variables. 2021-01-24 13:58:17 +00:00
pstatmnt.pas * do not set nonlocal for inter-procedural labels, this is not needed, they use 2020-09-20 18:57:00 +00:00
psub.pas * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
psystem.pas * fix for Mantis #38051: make Chr() a real intrinsics so that it can be used in type declarations as well 2020-11-08 22:23:02 +00:00
ptconst.pas
ptype.pas + implement align directive for records, resolves #28927 2020-12-29 18:19:35 +00:00
raatt.pas + add endsym to ConcatConstSymbol 2020-12-02 21:44:12 +00:00
rabase.pas
rasm.pas
rautils.pas * more helpful message if an unknown field is accessed in the assembler reader, resolves #38475 2021-02-11 20:51:53 +00:00
README.txt
rescmn.pas + add option -FF to force the use of fpcres as RC compiler 2020-08-12 19:08:25 +00:00
rgbase.pas
rgobj.pas * rgobj: ungetiftemp can't be used here since it frees only temps of the tt_normal type. 2021-01-24 17:53:42 +00:00
scandir.pas * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
scanner.pas * give a proper error if macros are too deeply nested 2021-01-23 21:29:37 +00:00
switches.pas
symbase.pas * use new TSym.EscapedRealName property when creating new symbols with the 2020-12-27 13:18:53 +00:00
symconst.pas
symcreat.pas * use new TSym.EscapedRealName property when creating new symbols with the 2020-12-27 13:18:53 +00:00
symdef.pas * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
symsym.pas * have the generic dummy symbols for procsyms keep track of their overloaded generic procsyms so that they can be easily found (will be needed for implicit specializations) 2021-01-06 12:57:59 +00:00
symtable.pas * correctly handle the case should the generic dummy symbol be a procsym instead of a typesym 2021-01-02 23:23:34 +00:00
symtype.pas * Second patch xml-node-dump-defs.patch from J. Gareth Moreton from bug report 36882. 2020-12-02 21:01:40 +00:00
symutil.pas
syscinfo.pas
systems.inc m68k: initial commit to add the Sinclair QL as a compiler target 2020-11-04 14:20:28 +00:00
systems.pas + modified patch by Christo Crause: if the target support, the switch -Xu can be used to generate the executable as an uf2 file 2021-01-24 14:21:03 +00:00
tgobj.pas tgobj: Change direction of stack. 2020-03-21 20:59:32 +00:00
tokens.pas * according to ISO 10206 (Extended Pascal) 6.9.3.5 the "otherwise"-clause is supported for case-statements 2020-09-24 11:41:43 +00:00
triplet.pas
verbose.pas * do not output error numbers for options 2021-01-24 14:34:02 +00:00
version.pas
widestr.pas
wpo.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
wpobase.pas * fix warnings which were caused by last changes to for node generation 2016-11-05 23:05:44 +00:00
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