fpc/compiler
florian 8465710329 + make use of mulx instruction, if available
git-svn-id: trunk@43706 -
2019-12-21 16:20:10 +00:00
..
aarch64 * patch by J. Gareth Moreton, issue #36271, part 3: support for the other architectures 2019-11-10 16:11:40 +00:00
arm * check in CheckLive* if a register allocator is initialized for a certain register type 2019-12-08 22:22:17 +00:00
armgen
avr * patch by J. Gareth Moreton, issue #36271, part 3: support for the other architectures 2019-11-10 16:11:40 +00:00
generic
html
i386 + make use of mulx instruction, if available 2019-12-21 16:20:10 +00:00
i8086 + MULX instruction 2019-12-21 16:20:09 +00:00
jvm * move the common sequence to build a VMT for an objectdef into a separate procedure (based on a patch by Blaise.ru) 2019-12-11 22:42:53 +00:00
llvm + recognise LLVM 9.0 (no changes needed compared to LLVM 8.0) 2019-12-14 17:15:27 +00:00
m68k * patch by J. Gareth Moreton, issue #36271, part 3: support for the other architectures 2019-11-10 16:11:40 +00:00
mips Add '.module nomips16' at assembly entry for mips/mipsel unless -a5 option is used 2019-11-27 22:56:35 +00:00
msg * rework syntax for cblocks: now a cblock directive is required 2019-12-14 16:45:38 +00:00
powerpc * patch by J. Gareth Moreton, issue #36271, part 3: support for the other architectures 2019-11-10 16:11:40 +00:00
powerpc64 * patch by J. Gareth Moreton, issue #36271, part 3: support for the other architectures 2019-11-10 16:11:40 +00:00
ppcgen * compilation of x86 and PowerPC fixed 2019-10-09 19:26:59 +00:00
riscv Comparison nodes are always in LOC_REGISTER, never in LOC_JUMP for riscv32 or riscv64 CPUs 2019-11-29 23:28:05 +00:00
riscv32 Change parameter type to tcgint for is_imm12 and is_lui_imm functions to avoid range check errors 2019-11-29 10:31:31 +00:00
riscv64 Add explicit smallint typecast to first marameter of SarSmallint call to avoid range check errors 2019-11-29 23:26:45 +00:00
sparc
sparc64
sparcgen * patch by J. Gareth Moreton, issue #36271, part 3: support for the other architectures 2019-11-10 16:11:40 +00:00
systems * patch by Alfred to fix building on DragonFly OS, resolves #36450 2019-12-17 21:57:09 +00:00
utils * Remove duplicate ibextraheader handling. 2019-12-11 17:14:27 +00:00
x86 + MULX instruction 2019-12-21 16:20:09 +00:00
x86_64 + MULX instruction 2019-12-21 16:20:09 +00:00
aasmbase.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
aasmcfi.pas
aasmcnst.pas
aasmdata.pas
aasmdef.pas * also generate indirect symbols for AB_PRIVATE_EXTERN symbols as these might be used from a unit in another package due to inlining 2019-11-21 21:44:12 +00:00
aasmsym.pas
aasmtai.pas * replaced tentryfile.get/putsmall/normalset() with a common tget/putset 2019-11-06 21:50:19 +00:00
aggas.pas * do not write section flags/progbits for .data, .rodata .data.norel as the compiler will ignore them anyways and warn about it 2019-11-09 18:28:30 +00:00
aopt.pas
aoptbase.pas o patch by J. Gareth Moreton, seeks to improve maintainability, safety and efficiency 2019-11-26 22:09:33 +00:00
aoptda.pas
aoptobj.pas o patch by J. Gareth Moreton, resolves r36371: 2019-12-09 20:58:31 +00:00
aoptutils.pas o patch by J. Gareth Moreton, seeks to improve maintainability, safety and efficiency 2019-11-26 22:09:33 +00:00
assemble.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas
cfidwarf.pas
cfileutl.pas * fixed opt-in sysroot substitution again, renamed the three-argument version 2019-10-26 13:48:30 +00:00
cg64f32.pas
cgbase.pas
cgexcept.pas
cghlcpu.pas
cgobj.pas * symbols called by g_call might need to be imported from dynamic packages as well 2019-11-21 21:44:29 +00:00
cgutils.pas
cmsgs.pas
comphook.pas
compiler.pas
compinnr.pas + add support for the IsManagedType() intrinsics which reports for a type (or variable) whether it needs initialization/finalization 2019-11-06 23:04:52 +00:00
comprsrc.pas
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas
cscript.pas
cstreams.pas
cutils.pas
cwindirs.pp
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas * fix for Mantis #35567: use the correct type for the size type of a dynamic array 2019-10-19 15:41:29 +00:00
dbgstabs.pas
dbgstabx.pas
defcmp.pas
defutil.pas * properly perform (or not) range/overflow checking when performing constant 2019-11-10 12:00:05 +00:00
dirparse.pas
dwarfbase.pas
elfbase.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
entfile.pas * replaced tentryfile.get/putsmall/normalset() with a common tget/putset 2019-11-06 21:50:19 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas
fpccrc.pas
fpcdefs.inc * replaced tentryfile.get/putsmall/normalset() with a common tget/putset 2019-11-06 21:50:19 +00:00
fpcp.pas
fpkg.pas
fppu.pas * replaced tentryfile.get/putsmall/normalset() with a common tget/putset 2019-11-06 21:50:19 +00:00
gendef.pas
globals.pas - removed LLVM support for clang < 7.0 and Xcode < 10.0: those versions 2019-12-14 14:59:05 +00:00
globstat.pas
globtype.pas
hlcg2ll.pas
hlcgobj.pas * unified internalerror, resolves #36378 2019-11-29 21:06:12 +00:00
htypechk.pas * keep track of static symbols that a global function references, as those must now be exported from a dynamic package as well if the function can potentially be inlined 2019-11-21 21:44:53 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas
macho.pas
machoutils.pas
Makefile Regenerate all Makefile's after commit #43472 2019-11-15 14:47:02 +00:00
Makefile.fpc Remove ALLOW_WARNINGS=1 for m68k compiler 2019-11-05 10:37:19 +00:00
MPWMake
msgidx.inc * regenerate msg*.inc files after adding a new error message related to C blocks 2019-12-14 16:45:42 +00:00
msgtxt.inc * regenerate msg*.inc files after adding a new error message related to C blocks 2019-12-14 16:45:42 +00:00
nadd.pas * more currency fixes, should resolve #36176 2019-12-03 19:31:50 +00:00
nbas.pas * replaced tentryfile.get/putsmall/normalset() with a common tget/putset 2019-11-06 21:50:19 +00:00
ncal.pas * do not optimize inline nodes which are part of call node which has an init and/or cleanup block, resolves #36323 2019-11-21 22:15:06 +00:00
ncgadd.pas
ncgbas.pas * adapt register if the size of the paraloc and the register differ, resolves #34409 2019-11-30 20:37:55 +00:00
ncgcal.pas * renamed abi_linux386_sysv to abi_i386_dynalignedstack, and also use it 2019-12-05 19:38:01 +00:00
ncgcnv.pas
ncgcon.pas
ncgflw.pas * cleaned up safecall support: use a hidden localvarsym instead of result 2019-11-24 20:23:22 +00:00
ncghlmat.pas
ncginl.pas
ncgld.pas * correctly check for the system unit 2019-11-21 21:44:36 +00:00
ncgmat.pas
ncgmem.pas
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas
ncgset.pas
ncgutil.pas * renamed abi_linux386_sysv to abi_i386_dynalignedstack, and also use it 2019-12-05 19:38:01 +00:00
ncgvmt.pas * apply (adjusted) patch by Blaise.ru: vmtentries is always created since 2008, so treat it as such (also fixes a memory leak in tobjectdef.getcopy) 2019-12-02 06:59:05 +00:00
ncnv.pas * fix some currency issues, resolves #33963 and #36179 2019-12-01 20:24:00 +00:00
ncon.pas * fix some currency issues, resolves #33963 and #36179 2019-12-01 20:24:00 +00:00
nflw.pas * cleaned up safecall support: use a hidden localvarsym instead of result 2019-11-24 20:23:22 +00:00
ngenutil.pas * cleaned up safecall support: use a hidden localvarsym instead of result 2019-11-24 20:23:22 +00:00
ngtcon.pas * properly perform (or not) range/overflow checking when performing constant 2019-11-10 12:00:05 +00:00
ninl.pas * properly perform (or not) range/overflow checking when performing constant 2019-11-10 12:00:05 +00:00
nld.pas * replaced tentryfile.get/putsmall/normalset() with a common tget/putset 2019-11-06 21:50:19 +00:00
nmat.pas * restored original behaviour of shl/shr constant evaluation outside 2019-11-22 21:12:00 +00:00
nmem.pas * replaced tentryfile.get/putsmall/normalset() with a common tget/putset 2019-11-06 21:50:19 +00:00
nobj.pas * more correct method names (based on patch by Blaise.ru) 2019-12-11 22:43:00 +00:00
nobjc.pas
node.pas * fix some currency issues, resolves #33963 and #36179 2019-12-01 20:24:00 +00:00
nopt.pas
nset.pas
nutils.pas Fix invalid typecast revealed by -CriotR by changing order of terms in boolean expression 2019-11-19 22:47:39 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas * use translateable error messages for undefined symbols and also report in which object file the symbol was first found 2019-11-21 21:45:11 +00:00
ogcoff.pas * change TObjData.sectiontype2options to a class function so that it can be called without an instance of TObjData 2019-10-19 15:41:33 +00:00
ogelf.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
oglx.pas
ogmacho.pas * change TObjData.sectiontype2options to a class function so that it can be called without an instance of TObjData 2019-10-19 15:41:33 +00:00
ogmap.pas + add a Flush method to TExeMap which is useful when debugging internal errors or crashes where the exemap instance has not yet been destroyed 2019-11-02 12:36:26 +00:00
ognlm.pas
ogomf.pas * fixed i8086 compilation after r43265 2019-10-21 13:14:58 +00:00
omfbase.pas * compilation of x86 and PowerPC fixed 2019-10-09 19:26:59 +00:00
optbase.pas
optconstprop.pas
optcse.pas * cse adjusted 2019-11-16 14:07:59 +00:00
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas Also accept -a5 for older binutils for mips and mpisel cpus 2019-11-27 22:54:47 +00:00
optloadmodifystore.pas
optloop.pas
opttail.pas
optutils.pas
optvirt.pas
owar.pas
owbase.pas
owomflib.pas
parabase.pas
paramgr.pas * cleaned up safecall support: use a hidden localvarsym instead of result 2019-11-24 20:23:22 +00:00
parser.pas Set default stack size for i8086-embedded target: 16384 for far data model, and 2048 for other memory models 2019-11-28 14:50:55 +00:00
pass_1.pas
pass_2.pas
pbase.pas
pcp.pas
pdecl.pas * rework syntax for cblocks: now a cblock directive is required 2019-12-14 16:45:38 +00:00
pdecobj.pas
pdecsub.pas * rework syntax for cblocks: now a cblock directive is required 2019-12-14 16:45:38 +00:00
pdecvar.pas
pexports.pas
pexpr.pas * better error recovery, resolves #36397 2019-12-05 20:46:50 +00:00
pgentype.pas
pgenutil.pas * move the common sequence to build a VMT for an objectdef into a separate procedure (based on a patch by Blaise.ru) 2019-12-11 22:42:53 +00:00
pinline.pas
pkgutil.pas * keep track of static symbols that a global function references, as those must now be exported from a dynamic package as well if the function can potentially be inlined 2019-11-21 21:44:53 +00:00
pmodules.pas * use a different name for the packages' entry point and use _DLLMainCRTStartup as an alias to avoid problems with the C-prefix 2019-11-21 21:45:18 +00:00
pp.lpi
pp.pas
pparautl.pas * cleaned up safecall support: use a hidden localvarsym instead of result 2019-11-24 20:23:22 +00:00
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi + makefiles use -Sew, so added to the project as well 2019-10-12 21:56:18 +00:00
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcriscv32.lpi
ppcriscv64.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcx64.lpi * unneeded changes reverted 2019-11-10 16:41:53 +00:00
ppcx64llvm.lpi
ppheap.pas
ppu.pas * packed tabstractvarsym.addr_taken/different_scope fields into a set 2019-11-11 09:26:51 +00:00
procdefutil.pas
procinfo.pas * keep track of static symbols that a global function references, as those must now be exported from a dynamic package as well if the function can potentially be inlined 2019-11-21 21:44:53 +00:00
psabiehpi.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
pstatmnt.pas * properly perform (or not) range/overflow checking when performing constant 2019-11-10 12:00:05 +00:00
psub.pas * keep track of static symbols that a global function references, as those must now be exported from a dynamic package as well if the function can potentially be inlined 2019-11-21 21:44:53 +00:00
psystem.pas + add support for the IsManagedType() intrinsics which reports for a type (or variable) whether it needs initialization/finalization 2019-11-06 23:04:52 +00:00
ptconst.pas * ensure that nothing assembly related is generated for generics when a typed constant (this also includes local variable initializations) are parsed 2019-11-21 21:44:16 +00:00
ptype.pas * better error recovery, resolves #36377 2019-11-29 22:13:17 +00:00
raatt.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
rabase.pas
rasm.pas
rautils.pas
README.txt
rescmn.pas
rgbase.pas
rgobj.pas * do not join register deallocations/allocations as it makes no use and causes later on trouble in 2019-11-03 17:13:59 +00:00
scandir.pas * fixed opt-in sysroot substitution again, renamed the three-argument version 2019-10-26 13:48:30 +00:00
scanner.pas
switches.pas
symbase.pas * also check for Nil symtables in tsymtable.includeoption 2019-11-24 00:04:27 +00:00
symconst.pas * keep track of static symbols that a global function references, as those must now be exported from a dynamic package as well if the function can potentially be inlined 2019-11-21 21:44:53 +00:00
symcreat.pas * when creating the static field of a generic, insert it into the generic instead of the global symtable as it isn't really used anyway 2019-11-21 21:44:43 +00:00
symdef.pas * apply patch by Blaise.ru to remove last remnants of VMT regeneration which is no longer needed/used 2019-12-02 22:29:29 +00:00
symsym.pas * packed tabstractvarsym.addr_taken/different_scope fields into a set 2019-11-11 09:26:51 +00:00
symtable.pas * fix typo in comment 2019-12-20 16:44:52 +00:00
symtype.pas + add a method to tdef to initialize the defid from within a constructor 2019-12-02 06:58:47 +00:00
symutil.pas
syscinfo.pas
systems.inc * renamed abi_linux386_sysv to abi_i386_dynalignedstack, and also use it 2019-12-05 19:38:01 +00:00
systems.pas * adapted 16 byte alignment handling on linux: it is now assumed that the callee tries to clear the stack, so in the caller, the stack is re-adjusted 2019-10-12 21:51:13 +00:00
tgobj.pas
tokens.pas * rework syntax for cblocks: now a cblock directive is required 2019-12-14 16:45:38 +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