fpc/compiler
Jonas Maebe f9b216f99a dbgllvm: remove tmembercallbackinfo
Leftover from dbgdwarf, not used here
2022-06-07 21:42:49 +02:00
..
aarch64
arm Manually increase refs of newly created labelsymbol in insertpcrelativedata 2022-05-31 14:26:00 +00:00
armgen
avr
generic
html
i386 * extend tabstractprocdef.getcopyas by a parameter to control whether the copy should be registered or not 2022-05-26 21:42:59 +02:00
i8086 * extend tabstractprocdef.getcopyas by a parameter to control whether the copy should be registered or not 2022-05-26 21:42:59 +02:00
jvm + add method register_implemented_interface to tobjectdef which registers an implemented interface and - if desired - also initializes the GUID related fields of the objectdef 2022-05-26 21:43:37 +02:00
llvm dbgllvm: remove tmembercallbackinfo 2022-06-07 21:42:49 +02:00
m68k * extend tabstractprocdef.getcopyas by a parameter to control whether the copy should be registered or not 2022-05-26 21:42:59 +02:00
mips
msg LLVM: list supported LLVM/Xcode versions 2022-06-04 10:22:19 +02:00
powerpc Fix compilation of 32-bit powerpc compiler 2022-06-03 11:45:36 -07:00
powerpc64 Add several increfs to avoid troubles on AIX target OS 2022-06-03 11:28:15 -07:00
ppcgen Add several increfs to avoid troubles on AIX target OS 2022-06-03 11:28:15 -07:00
riscv * Risc-V: allow also register aliases in register modification lists after asm blocks, last part to resolve #39738 2022-06-03 22:54:18 +02:00
riscv32 * unified Risc-V 32 and 64 register data file 2022-05-30 21:10:34 +02:00
riscv64 + added Risc-V register information file generation to the compiler Makefile 2022-05-31 22:38:30 +02:00
sparc
sparc64
sparcgen Fix compilation of sparc compiler with -dDEBUG_ALL_OPT 2022-05-31 11:47:24 +00:00
systems * the stack pointer on Risc-V points always at the last used position, resolves #39739 2022-05-28 20:10:49 +02:00
utils + added Risc-V register information file generation to the compiler Makefile 2022-05-31 22:38:30 +02:00
wasm32 + added the WebAssembly saturating truncation instructions to the internal assembler 2022-05-28 17:41:28 +03:00
x86 * reset written source lines once a section is encountered 2022-05-26 21:43:35 +02:00
x86_64 * extend tabstractprocdef.getcopyas by a parameter to control whether the copy should be registered or not 2022-05-26 21:42:59 +02:00
xtensa
z80 * reset written source lines once a section is encountered 2022-05-26 21:43:35 +02:00
aasmbase.pas
aasmcfi.pas
aasmcnst.pas llvm: support for adding/subtracting constants to pointers in typed constants 2022-05-29 13:33:27 +02:00
aasmdata.pas llvmdbg: build hashtable to lookup llvmdecl belonging to a global variable 2022-05-21 22:32:35 +02:00
aasmdef.pas
aasmsym.pas
aasmtai.pas Add missing reference increases for ait_jvar labels 2022-05-20 21:18:44 +02:00
aggas.pas Also add a comment when a label has been optimized out when compiled DEBUG_LABEL 2022-05-31 13:00:04 +00:00
aopt.pas
aoptbase.pas
aoptda.pas
aoptobj.pas
aoptutils.pas
assemble.pas + add method ResetSourceLines to TExternalAssembler to reset already written lines 2022-05-26 21:43:35 +02:00
blockutl.pas * extend tabstractprocdef.getcopyas by a parameter to control whether the copy should be registered or not 2022-05-26 21:42:59 +02:00
browcol.pas
catch.pas
ccharset.pas
cclasses.pas
cepiktimer.pas
cfidwarf.pas
cfileutl.pas
cg64f32.pas
cgbase.pas
cgexcept.pas
cghlcpu.pas
cgobj.pas
cgutils.pas
cmsgs.pas
comphook.pas
compiler.pas
compinnr.pas
comprsrc.pas
comptty.pas
constexp.pas
COPYING.txt
cprofile.pas
crefs.pas
cresstr.pas
cscript.pas
cstreams.pas
cutils.pas * patch by Rika: improve EncodeUleb128/EncodeSleb128, second part of #39750, resolves #39750 2022-06-06 22:14:46 +02:00
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas
dbgdwarfconst.pas
dbgstabs.pas
dbgstabx.pas
defcmp.pas * fix #39740: consider a conversion of a procedure or procedure variable to a function reference as a bit more expensive than otherwise 2022-05-31 22:50:14 +02:00
defutil.pas + add utility function to check whether an invokable can be invoked without explicit parameters 2022-05-26 21:42:57 +02:00
dirparse.pas
dwarfbase.pas
elfbase.pas
entfile.pas
export.pas * removed unused units 2017-05-09 19:53:14 +00:00
expunix.pas
finput.pas
fmodule.pas
fpcdefs.inc + enable the ROL/ROR instructions for WebAssembly 2022-05-27 22:46:32 +03:00
fpchash.pas
fpcp.pas
fpkg.pas
fppu.pas
gendef.pas
globals.pas
globstat.pas
globtype.pas + added the 'wasmthreads' target switch (enabled via -CTwasmthreads) 2022-05-28 01:18:55 +03:00
hlcg2ll.pas
hlcgobj.pas hlcgobj: new getlocal and recordnewsymloc methods 2022-06-04 22:26:40 +02:00
htypechk.pas * fix #39740: consider a conversion of a procedure or procedure variable to a function reference as a bit more expensive than otherwise 2022-05-31 22:50:14 +02:00
impdef.pas
import.pas
ldscript.pas
link.pas
macho.pas
machoutils.pas
Makefile + added Risc-V register information file generation to the compiler Makefile 2022-05-31 22:38:30 +02:00
Makefile.fpc + added Risc-V register information file generation to the compiler Makefile 2022-05-31 22:38:30 +02:00
MPWMake
msgidx.inc msg*.inc: regenerated 2022-06-04 10:23:28 +02:00
msgtxt.inc msg*.inc: regenerated 2022-06-04 10:23:28 +02:00
nadd.pas taddnode.cmp_of_disjunct_ranges: fortify in case of programs with errors 2022-05-29 13:33:27 +02:00
nbas.pas
ncal.pas * a function also captures other nested functions when these are called 2022-05-26 21:43:36 +02:00
ncgadd.pas
ncgbas.pas
ncgcal.pas
ncgcnv.pas
ncgcon.pas
ncgflw.pas
ncghlmat.pas
ncginl.pas
ncgld.pas hlcgobj: new getlocal and recordnewsymloc methods 2022-06-04 22:26:40 +02:00
ncgmat.pas
ncgmem.pas
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas
ncgset.pas
ncgutil.pas hlcgobj: new getlocal and recordnewsymloc methods 2022-06-04 22:26:40 +02:00
ncgvmt.pas * make the VMT symbol and type def of the corresponding class or object instead of having them be global 2022-05-26 21:42:51 +02:00
ncnv.pas do_set: immediately exit in case of range error 2022-05-29 13:33:27 +02:00
ncon.pas
nflw.pas
ngenutil.pas Disable finalisation code fro LLVM compiler to avoid interface finalisation troubles 2022-06-01 00:19:46 +02:00
ngtcon.pas llvm: support for adding/subtracting constants to pointers in typed constants 2022-05-29 13:33:27 +02:00
ninl.pas
nld.pas * implement assignment of anonymous functions to procedure or method variables if they either capture nothing or (in case of method variables) at most the Self variable 2022-05-26 21:43:01 +02:00
nmat.pas
nmem.pas
nobj.pas * make the VMT symbol and type def of the corresponding class or object instead of having them be global 2022-05-26 21:42:51 +02:00
nobjc.pas
node.pas
nopt.pas
nset.pas
nutils.pas * Delphi-mode calling without parenthesis 2022-05-26 21:43:00 +02:00
objcasm.pas
objcdef.pas objcdef: remove duplicate variant start check 2022-06-06 23:12:53 +02:00
objcgutl.pas
objcutil.pas
ogbase.pas
ogcoff.pas
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
ogomf.pas
ogrel.pas
ogwasm.pas + produce a target_features section when compiling with -CTwasmthreads 2022-05-28 04:04:02 +03:00
omfbase.pas
optbase.pas
optconstprop.pas * continue const. propagation after a for loop when possible 2022-05-22 22:52:18 +02:00
optcse.pas
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas LLVM: list supported LLVM/Xcode versions 2022-06-04 10:22:19 +02:00
optloadmodifystore.pas
optloop.pas
opttail.pas
optutils.pas
optvirt.pas
owar.pas
owbase.pas
owomflib.pas
parabase.pas TCGParaLocation: remove alignment gap 2022-06-04 22:26:40 +02:00
paramgr.pas
parser.pas * implement assignment of procedure and method variables and routines (global, instance and nested) to function references 2022-05-26 21:44:24 +02:00
pass_1.pas
pass_2.pas
pbase.pas * implement assignment of procedure and method variables and routines (global, instance and nested) to function references 2022-05-26 21:44:24 +02:00
pcp.pas
pdecl.pas Fix cycling with -CR option 2022-05-26 22:43:41 +02:00
pdecobj.pas + add method register_implemented_interface to tobjectdef which registers an implemented interface and - if desired - also initializes the GUID related fields of the objectdef 2022-05-26 21:43:37 +02:00
pdecsub.pas function references: make names of interface methods valid Pascal identifiers 2022-05-29 23:07:13 +02:00
pdecvar.pas read_record_fields: fix overflows of variant record size variables 2022-05-29 13:33:27 +02:00
pexports.pas
pexpr.pas * implement assignment of procedure and method variables and routines (global, instance and nested) to function references 2022-05-26 21:44:24 +02:00
pgentype.pas
pgenutil.pas * if a symbol is not part of a symtable then assume it's from the current module 2022-05-26 21:43:40 +02:00
pinline.pas
pkgutil.pas
pmodules.pas * ensure that nested functions of main program, main program finalization and unit initialization/finalization are generated 2022-05-26 21:43:00 +02:00
pp.lpi
pp.pas
pparautl.pas * do not insert the $result symbol again when the VMT for the capturer is built 2022-05-26 21:44:22 +02:00
ppc68k.lpi
ppc8086.lpi
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
ppcppc.lpi
ppcriscv32.lpi
ppcriscv64.lpi * fix assembling with official binutils 2018-07-22 13:10:24 +00:00
ppcsparc64.lpi
ppcsparc.lpi
ppcwasm32.lpi
ppcx64.lpi
ppcx64llvm.lpi
ppcxtensa.lpi
ppcz80.lpi
ppheap.pas
ppu.pas * make the VMT symbol and type def of the corresponding class or object instead of having them be global 2022-05-26 21:42:51 +02:00
procdefutil.pas Fix compliation error with -Oodfa option as reported by Gareth 2022-06-01 00:35:55 +02:00
procinfo.pas + add method to find a procinfo for a nested function by the corresponding procdef 2022-05-26 21:44:24 +02:00
psabiehpi.pas
pstatmnt.pas * Risc-V: allow also register aliases in register modification lists after asm blocks, last part to resolve #39738 2022-06-03 22:54:18 +02:00
psub.pas + implement necessary functionality in tcgprocinfo to initialize and populate the capturer 2022-05-26 21:44:23 +02:00
psystem.pas llvm: changed llvm_metadatatype from untyped pointer to undefineddef 2022-06-04 22:26:40 +02:00
ptconst.pas
ptype.pas * compilation with -O3 fixed 2022-05-26 22:34:34 +02:00
raatt.pas
rabase.pas
rasm.pas
rautils.pas rautils: don't interpret ".L3" as potentially meaning "unitx.identifier" 2022-05-29 13:33:27 +02:00
README.txt
rescmn.pas
rgbase.pas
rgobj.pas
scandir.pas
scanner.pas
switches.pas
symbase.pas
symconst.pas + initial support for anonymous functions, for now as essentially nested functions 2022-05-26 21:43:00 +02:00
symcreat.pas parentfpstruct: don't add vo_is_firstfield to first field of record 2022-06-06 23:12:53 +02:00
symdef.pas tarraydef.elecount: fix overflow detection 2022-05-29 13:33:27 +02:00
symsym.pas dbgllvm: support for record field debug information 2022-06-06 23:12:53 +02:00
symtable.pas * protected symbols are visible for defs declared in a local symtable as well 2022-05-26 21:43:40 +02:00
symtype.pas + provide a tsym based variant of ChangeOwnerAndName 2022-05-26 21:43:36 +02:00
symutil.pas
syscinfo.pas
systems.inc + support different versions of llvm-mc (version 10 seems to be the earliest that works) 2022-05-26 15:06:35 +03:00
systems.pas
tgobj.pas
tokens.pas
triplet.pas
verbose.pas - remove duplicate paraprintnodetree to ensure that there the right paraprintnodetree is used (namely the one from globals) 2022-05-26 21:42:51 +02:00
version.pas
wasmbase.pas + produce a target_features section when compiling with -CTwasmthreads 2022-05-28 04:04:02 +03: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