fpc/compiler
2018-06-12 19:40:45 +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 Set return value when calling inherited in ti8086inlinenode.pass_typecheck_cpu 2018-05-23 20:43:40 +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 m68k: try to generate better code from some pointermath - when the left is an address register and we do add/sub, also allocate an address register as temp, also only require that left and right sizes are same, when right is not a const 2018-06-05 16:45:02 +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 * split create_paraloc_info_intern for sparc32 and sparc64 2017-08-20 15:21:51 +00:00
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 * fixed compilation of .com files in the i8086 tiny memory model, when used with 2018-06-12 00:38:51 +00:00
utils * do not unroll loops if the counter variable is accessed outside the current scope 2018-06-03 15:12:48 +00:00
x86 + support ugly constructs like 'DD BYTE PTR 5' in the x86 intel syntax inline 2018-05-29 15:43:08 +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 + support exporting labels from asm blocks in intel syntax asm blocks via the 2017-10-30 16:44:13 +00:00
aasmcnst.pas Try to avoid inserting all RTTI symbols into executables on targets not supporting smartlinked sections 2018-05-25 20:44:24 +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 palmos: no .rodata section here either 2018-01-04 08:26:22 +00:00
aopt.pas
aoptbase.pas + define cpudelayslot: set during compiler compilation for CPUs having branch instructions with delay slot (MIPS, SPARC) 2017-08-20 17:20:38 +00:00
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 + implemented support for codepage aware compiler messages. It can be enabled 2017-06-08 16:11:33 +00:00
comphook.pas
compiler.pas * print used unit scopes 2018-05-07 19:48:26 +00:00
compinnr.pas + added an i8086-specific FarAddr() function, similar to Addr(), but always 2017-11-27 16:41:48 +00:00
comprsrc.pas renamed script unit to cscript to avoid namespace conflict with univint package on Darwin. this makes it possible to build the textmode IDE on Darwin 2017-11-17 11:27:19 +00:00
constexp.pas
COPYING.txt
cpid.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
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 * use DW_OP_reg0..DW_OP_reg31 instead of DW_OP_regx in TDebugInfoDwarf.append_seg_reg 2018-05-28 14:21:53 +00:00
dbgstabs.pas Add explicit '.set nompis16' at front of stabs debug information to solve bug report 32138 2017-07-24 07:31:31 +00:00
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 Add obsolete prefix to cpu_ia64, system_ia64_win64 and system_ia64_embedded, ia64 specfic code has been removed in rev 30836 dated 2015-05-09 2017-08-04 08:54:34 +00:00
globals.pas * allow $MinEnumSize, $PackSet and $PackRecords to be used with $Push and $Pop 2018-06-12 19:40:45 +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 * do not unroll loops if the counter variable is accessed outside the current scope 2018-06-03 15:12:48 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas * do not use a wildcard while deleting smartlinked objects after linking stage in a script, conflicts with script filename quoting on Unix at least 2018-01-06 10:19:21 +00:00
macho.pas
machoutils.pas
Makefile * target classic MacOS builds again 2018-05-31 19:31:36 +00:00
Makefile.fpc * target classic MacOS builds again 2018-05-31 19:31: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 * optimize "dynarr := dynarr + [elem]" to "Insert(elem, dynarr, High(SizeInt))" and "dynarr := [elem] + dynarr" to "Insert(elem, dynarr, 0)" (we need to do this in the typecheck of taddnode as otherwise the array constructor is already converted) 2018-05-25 16:03:56 +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 ncginl: another approach to fix the same issue #39184 supposed to address. keep left.resultdef, but try to make the target def always ordinal of an equal size, so it ends up in a data register on m68k 2018-06-07 06:43:02 +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 + correctly set var state of addr and frame in raise statements, resolves #33818 2018-06-03 09:31:19 +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 * also check for nf_assign_done_in_right flag after typechecking the right side 2018-05-25 15:54:41 +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 * changed the TObjRelocation.DataOffset and orgsize types to TObjSectionOfs instead of aword 2018-05-22 13:17:35 +00:00
ogcoff.pas * changed type used for section alignment from byte/shortint to longint, so the 2017-10-25 15:47:29 +00:00
ogelf.pas * elf section alignment, patch by Florian, mantis #32900 2018-02-16 18:01:29 +00:00
oglx.pas
ogmacho.pas * changed type used for section alignment from byte/shortint to longint, so the 2017-10-25 15:47:29 +00:00
ogmap.pas
ognlm.pas * changed type used for section alignment from byte/shortint to longint, so the 2017-10-25 15:47:29 +00:00
ogomf.pas * use upper case OMF section names when using i8086 section-based smart linking 2018-06-12 00:14:08 +00:00
omfbase.pas + support AB_LOCAL symbols in OMF object files, by implementing support for 2018-06-11 15:29:23 +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 + enabled the load-modify-store optimization for the double argument version 2017-07-21 13:17:18 +00:00
optloop.pas * do not unroll loops if the counter variable is accessed outside the current scope 2018-06-03 15:12:48 +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 * only read the first OMF record in TOmfLibObjectWriter.closefile, since we no 2018-06-08 14:21:18 +00:00
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 renamed script unit to cscript to avoid namespace conflict with univint package on Darwin. this makes it possible to build the textmode IDE on Darwin 2017-11-17 11:27:19 +00:00
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 * when creating a unique type alias for an object, class or interface, 2018-01-07 12:25:16 +00:00
pdecobj.pas * fix for Mantis #32355: adjust the meaning of the typehelpers modeswitch for Delphi modes in that it enables the "type helper" syntax as it is in the non-Delphi modes; extending primitive types with record helpers is now always enabled in Delphi modes 2017-09-15 21:09:21 +00:00
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 * move code to add a symbol to the current module's generic dummy symbols into a new function pgenutil.add_generic_dummysym() 2017-06-09 14:30:23 +00:00
pinline.pas * move handling of Concat to tinlinenode so that it can be easily extended for dynamic arrays 2017-10-08 10:39:34 +00:00
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 List possible CPU in alphabetical order 2017-08-04 11:14:12 +00:00
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 * made lazarus project names more systematic 2017-12-28 14:34:04 +00:00
ppcx64llvm.lpi * made lazarus project names more systematic 2017-12-28 14:34:04 +00:00
ppheap.pas
ppu.pas * do not unroll loops if the counter variable is accessed outside the current scope 2018-06-03 15:12:48 +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 * reuse more sparc code for sparc64 2017-08-20 17:20:43 +00:00
scandir.pas * allow $MinEnumSize, $PackSet and $PackRecords to be used with $Push and $Pop 2018-06-12 19:40:45 +00:00
scanner.pas + add support for Unicode code point constants > $FFFF; they are converted to a surrogate pair so they are in 2018-05-27 14:06:19 +00:00
switches.pas * allow $MinEnumSize, $PackSet and $PackRecords to be used with $Push and $Pop 2018-06-12 19:40:45 +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 * do not unroll loops if the counter variable is accessed outside the current scope 2018-06-03 15:12:48 +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 Add arm-palmos target to list supporting po_syscall 2017-09-15 20:25:59 +00:00
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 Add some more debug information to temp-generation when compiled with -dEXTDEBUG 2018-05-28 22:39:21 +00:00
tokens.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
verbose.pas + implemented support for codepage aware compiler messages. It can be enabled 2017-06-08 16:11:33 +00:00
version.pas + support sparc64 as host/source cpu 2017-06-18 21:06:29 +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