fpc/compiler
2018-05-21 15:46:02 +00:00
..
aarch64 * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
arm * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
avr * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
generic
html
i386 * synchronize get_saved_registers_int and get_volatile_registers_int for all 2018-05-04 16:16:24 +00:00
i8086 - do not compile in the stabs debug info support for the i8086 target 2018-05-17 14:47:39 +00:00
jvm * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
llvm * support pasbool8 as type for a record field when a record is passed/ 2018-04-28 16:17:37 +00:00
m68k * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
mips * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
msg * revert r39043 and r39045 which disallow static array constants inside dynamic constants for Delphi modes 2018-05-21 08:13:17 +00:00
powerpc * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
powerpc64 * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
ppcgen * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
sparc
sparc64 * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
sparcgen * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
systems + started implementing support for generating Microsoft CodeView debug 2018-05-16 15:25:33 +00:00
utils Regenerated Makefile's after addition of ppas and ppaslink script removal in rev 38745 2018-04-12 15:21:49 +00:00
x86 + introduce asd_omf_linnum_line directives; they will be used for writing LINNUM 2018-05-16 17:05:02 +00:00
x86_64 * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
aasmbase.pas
aasmcnst.pas + add methods begin_dynarray_const and end_dynarray_const which can be used to emit the data of a dynamic array 2018-05-20 11:50:13 +00:00
aasmdata.pas
aasmdef.pas
aasmsym.pas
aasmtai.pas + introduce asd_omf_linnum_line directives; they will be used for writing LINNUM 2018-05-16 17:05:02 +00:00
aggas.pas
aopt.pas
aoptbase.pas
aoptda.pas
aoptobj.pas + TAOptObj.*PeepHoleOpts* check if p is really assigned 2018-03-10 21:53:48 +00:00
aoptutils.pas
assemble.pas + implemented the actual writing of LINNUM OMF records 2018-05-16 17:37:28 +00:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas
cfidwarf.pas
cfileutl.pas
cg64f32.pas
cgbase.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
cghlcpu.pas
cgobj.pas * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
cgutils.pas * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
cmsgs.pas
comphook.pas
compiler.pas * print used unit scopes 2018-05-07 19:48:26 +00:00
compinnr.pas
comprsrc.pas
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas
cscript.pas
cstreams.pas
cutils.pas * avoid overflow error in ispowerof2 for -2^bitsize, the routine does not handle negative values 2018-01-13 22:03:29 +00:00
cwindirs.pp
dbgbase.pas * revert r37968: it does more harm than good 2018-01-15 16:41:22 +00:00
dbgcodeview.pas + added new debug output option -godwarfomflinnum for generating line number 2018-05-17 14:38:50 +00:00
dbgdwarf.pas + emit segment information in the dwarf debug info for static variables on i8086 2018-05-21 15:30:58 +00:00
dbgstabs.pas
dbgstabx.pas
defcmp.pas * support for non-ASCII widechar constants (mantis #31605) 2018-04-10 19:24:15 +00:00
defutil.pas + support mmx shifting 2018-02-27 21:40:12 +00:00
dirparse.pas
elfbase.pas
entfile.pas + add putboolean and getboolean convenience methods to tentfile 2018-01-14 21:36:02 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas
fpccrc.pas
fpcdefs.inc + introduce asd_omf_linnum_line directives; they will be used for writing LINNUM 2018-05-16 17:05:02 +00:00
fpcp.pas
fpkg.pas
fppu.pas * keep track if the unit was found by using a default namespace as prefix 2018-05-05 17:18:39 +00:00
gendef.pas
globals.pas + enable by default the ds_dwarf_omf_linnum debug switch on i8086, since that's 2018-05-17 15:02:34 +00:00
globstat.pas
globtype.pas + added new debug output option -godwarfomflinnum for generating line number 2018-05-17 14:38:50 +00:00
hlcg2ll.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
hlcgobj.pas * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
htypechk.pas + new flag ra_different_scope: used if a node tree is marked as non-regable if a variable is accessed from a different scope 2018-04-04 21:39:47 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas
macho.pas
machoutils.pas
Makefile Regenerated Makefile's after addition of ppas and ppaslink script removal in rev 38745 2018-04-12 15:21:49 +00:00
Makefile.fpc Add missing executables in distclean, ppcavr, ppcsparc64 and cross-compilers ppcrossXXX 2018-04-12 15:03:36 +00:00
MPWMake
msgidx.inc * regenerate msg* files after r39078 2018-05-21 08:14:21 +00:00
msgtxt.inc * regenerate msg* files after r39078 2018-05-21 08:14:21 +00:00
nadd.pas * fix currency division on non x86 32 bit targets 2018-03-17 22:44:44 +00:00
nbas.pas * the temp. locations created by cse were not properly cleanup up, this patch fixes this 2018-03-25 15:55:34 +00:00
ncal.pas * fixed execution order of implicit finalization and class destructors: first 2018-04-08 15:41:00 +00:00
ncgadd.pas
ncgbas.pas * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
ncgcal.pas * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
ncgcnv.pas * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
ncgcon.pas
ncgflw.pas * moved execution weight calculation into a separate pass, so the info is available already available before the code generation pass if needed 2018-04-08 20:51:27 +00:00
ncghlmat.pas
ncginl.pas * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
ncgld.pas * ensure that load nodes only substitute temps in case both references point 2018-04-27 19:18:59 +00:00
ncgmat.pas + support mmx shifting 2018-02-27 21:40:12 +00:00
ncgmem.pas * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
ncgnstfl.pas
ncgnstld.pas * moved nf_typedaddr to addrnodeflags (anf_typedaddr) 2018-04-03 16:41:01 +00:00
ncgnstmm.pas * moved nf_typedaddr to addrnodeflags (anf_typedaddr) 2018-04-03 16:41:01 +00:00
ncgobjc.pas
ncgopt.pas
ncgrtti.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
ncgset.pas * moved execution weight calculation into a separate pass, so the info is available already available before the code generation pass if needed 2018-04-08 20:51:27 +00:00
ncgutil.pas - removed the check for pocall_oldfpccall from ncgutil.gen_save_used_regs and 2018-05-06 12:41:40 +00:00
ncgvmt.pas * shorten interface wrapper names if needed, resolves #33069 2018-02-22 21:55:07 +00:00
ncnv.pas * discard type conversions from/to generic defs for llvm as well 2018-04-28 16:17:45 +00:00
ncon.pas * simplify empty-dynamic-string-to-pointer (non-p(wide)char) type conversions 2018-04-02 18:35:00 +00:00
nflw.pas * evaluate the lower and upper bounds of for-loops in ISO mode using the 2018-01-07 18:51:53 +00:00
ngenutil.pas * fixed execution order of implicit finalization and class destructors: first 2018-04-08 15:41:00 +00:00
ngtcon.pas * revert r39043 and r39045 which disallow static array constants inside dynamic constants for Delphi modes 2018-05-21 08:13:17 +00:00
ninl.pas * don't use a vecnode to convert a dynamic array or an array constructor to a pointer as that will lead to problems with range checking if the array should be empty; fixes run of tarray12 with -Cr 2018-02-27 21:43:21 +00:00
nld.pas + new flag ra_different_scope: used if a node tree is marked as non-regable if a variable is accessed from a different scope 2018-04-04 21:39:47 +00:00
nmat.pas * fix currency division on non x86 32 bit targets 2018-03-17 22:44:44 +00:00
nmem.pas * i8086 TP7 compatibility fixes, related to obtaining procedure addresses: 2018-04-05 15:09:12 +00:00
nobj.pas
nobjc.pas
node.pas * moved nf_typedaddr to addrnodeflags (anf_typedaddr) 2018-04-03 16:41:01 +00:00
nopt.pas * moved nf_typedaddr to addrnodeflags (anf_typedaddr) 2018-04-03 16:41:01 +00:00
nset.pas - the labtree argument is no longer needed 2018-04-27 21:09:09 +00:00
nutils.pas + calculate loop unrolling using node_count_weighted which takes care of nodes generating no code 2018-04-04 21:39:46 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas
ogcoff.pas
ogelf.pas * elf section alignment, patch by Florian, mantis #32900 2018-02-16 18:01:29 +00:00
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
ogomf.pas + added new debug output option -godwarfomflinnum for generating line number 2018-05-17 14:38:50 +00:00
omfbase.pas * use 1-byte alignment instead of 4-byte alignment for the OMF dwarf sections 2018-05-20 20:59:39 +00:00
optbase.pas * moved execution weight calculation into a separate pass, so the info is available already available before the code generation pass if needed 2018-04-08 20:51:27 +00:00
optconstprop.pas
optcse.pas * the temp. locations created by cse were not properly cleanup up, this patch fixes this 2018-03-25 15:55:34 +00:00
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas * automatically switch to external linking (and show message) when requested to 2018-05-17 16:11:51 +00:00
optloadmodifystore.pas
optloop.pas * check for more controll flow statements before doing loop unrolling 2018-05-21 15:46:02 +00:00
opttail.pas
optutils.pas * patch by Pierre to fix warnings which prevent cross building 2018-04-09 19:01:02 +00:00
optvirt.pas
owar.pas
owbase.pas
owomflib.pas
parabase.pas * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
paramgr.pas * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
parser.pas
pass_1.pas
pass_2.pas * moved execution weight calculation into a separate pass, so the info is available already available before the code generation pass if needed 2018-04-08 20:51:27 +00:00
pbase.pas * a symbol might be specified using a partial namespace path as long as the missing part is a namespace symbol, 2018-05-05 17:18:45 +00:00
pcp.pas
pdecl.pas
pdecobj.pas
pdecsub.pas * unified def creation for open arrays 2018-03-04 17:59:05 +00:00
pdecvar.pas * unified def creation for open arrays 2018-03-04 17:59:05 +00:00
pexports.pas
pexpr.pas * also pass the pattern with which the potential unit/namespace symbol had been found to try_consume_unitsym*() 2018-05-05 17:18:31 +00:00
pgentype.pas
pgenutil.pas
pinline.pas
pkgutil.pas * check that the PPU version of a unit loaded for package adjustment matches exactly (we don't accept different versions when loading PPUs normally, so why should we with packages?) 2018-01-14 21:16:37 +00:00
pmodules.pas * correctly update the (now unregistered) unit symbol if the unit was found with the help of a default namespace 2018-05-05 17:18:42 +00:00
pp.lpi
pp.pas
pparautl.pas + introduce a new method tparamanager.asm_result_var(), which determines whether 2018-02-15 17:41:07 +00:00
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi * version update 2018-01-31 18:52:18 +00:00
ppcavr.lpi + version update 2018-01-31 18:46:23 +00:00
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcx64.lpi
ppcx64llvm.lpi
ppheap.pas
ppu.pas + introduced taddrnodeflags (empty for now) 2018-04-03 14:33:41 +00:00
procinfo.pas
pstatmnt.pas * also pass the pattern with which the potential unit/namespace symbol had been found to try_consume_unitsym*() 2018-05-05 17:18:31 +00:00
psub.pas * moved execution weight calculation into a separate pass, so the info is available already available before the code generation pass if needed 2018-04-08 20:51:27 +00:00
psystem.pas * unified def creation for open arrays 2018-03-04 17:59:05 +00:00
ptconst.pas
ptype.pas * also pass the pattern with which the potential unit/namespace symbol had been found to try_consume_unitsym*() 2018-05-05 17:18:31 +00:00
raatt.pas * inserted type casts on opr.val again, but depending on the type of opr.val, avoids range check errors 2018-02-25 15:32:38 +00:00
rabase.pas
rasm.pas * forgotten comment 2018-02-06 21:38:51 +00:00
rautils.pas + add support for '[' and ']' parenthesis in addition to '(' and ')' in 2018-04-26 14:13:30 +00:00
README.txt
rescmn.pas
rgbase.pas
rgobj.pas
scandir.pas + support {$message info ...}, resolves #30654 2018-02-25 15:50:58 +00:00
scanner.pas + patch by Denis Kozlov to add date/time tokens: %DATEYEAR%, %DATEMONTH%, %DATEDAY%, %TIMEHOUR%, %TIMEMINUTE%, %TIMESECOND% 2018-02-24 12:50:55 +00:00
switches.pas * (re)store alignment when doing a $push/$pop 2018-01-22 21:06:07 +00:00
symbase.pas
symconst.pas * unified the definition of pushleftright_pocalls on i8086 and i386 2018-05-08 14:27:36 +00:00
symcreat.pas * moved nf_typedaddr to addrnodeflags (anf_typedaddr) 2018-04-03 16:41:01 +00:00
symdef.pas * make procedures and functions, declared in the interface part of a unit in an 2018-04-10 15:37:28 +00:00
symsym.pas * extend tunitsym to be created as registered or not (for now all are created as registered) 2018-05-05 17:18:26 +00:00
symtable.pas * fixed execution order of implicit finalization and class destructors: first 2018-04-08 15:41:00 +00:00
symtype.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
symutil.pas
syscinfo.pas
systems.inc + started implementing support for generating Microsoft CodeView debug 2018-05-16 15:25:33 +00:00
systems.pas arm-netbsd: added platform define and dummy rtl files so the build passes for this platform. port not functional yet 2018-03-05 15:38:46 +00:00
tgobj.pas Make sure to set alignment of new temp slot to new value 2018-05-08 21:35:11 +00:00
tokens.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +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