fpc/compiler
2017-05-07 16:18:42 +00:00
..
aarch64 * fixed check to determine whether a record parameter can be subscripted 2017-04-26 19:43:35 +00:00
arm * ARM: Never use the "BLX label" instruction. Use "BL label" instead. 2017-05-04 15:55:55 +00:00
avr * unified usage of MatchOpType 2017-05-07 16:18:33 +00:00
generic
html
i386 * cleanup after all old code from PeepHoleOptPass2 of i386 was moved to the common x86 optimizer class 2017-05-07 16:18:37 +00:00
i8086 * unified usage of MatchOpType 2017-05-07 16:18:33 +00:00
jvm * keep track of allow_array_constructor as part of the array constructor node 2017-05-04 21:52:21 +00:00
llvm * fix for Mantis #31464: add an entry for the WebAssembly CPU (this is already the target name that LLVM uses) 2017-03-03 16:14:52 +00:00
m68k m68k: removed silly debug writeln accidentally left in r35671 2017-03-28 11:57:17 +00:00
mips * fixed check to determine whether a record parameter can be subscripted 2017-04-26 19:43:35 +00:00
msg + write name of segment/group which is too large 2017-02-19 19:15:18 +00:00
powerpc * fixed powerpc compiler compilation with -dEXTDEBUG 2017-04-27 17:25:33 +00:00
powerpc64 * fixed check to determine whether a record parameter can be subscripted 2017-04-26 19:43:35 +00:00
ppcgen Fix powerpc cycle for AIX target 2017-01-10 23:21:49 +00:00
sparc * fixed check to determine whether a record parameter can be subscripted 2017-04-26 19:43:35 +00:00
systems morphos: added tf_needs_smybol_type and tf_needs_symbol_size flags. fixes generated executables to not be falsely recognized as PowerUP but native binaries 2017-04-29 22:31:41 +00:00
utils Add missing management operator options to ppudump 2017-04-24 12:43:30 +00:00
x86 * use avx for copying data only on i386 for 8 byte chunks 2017-05-07 16:18:42 +00:00
x86_64 * unified usage of MatchOpType 2017-05-07 16:18:33 +00:00
aasmbase.pas * add ability to disable the generation of an indirect symbol if needed (useful if that's done by the constant builder) 2017-01-29 17:42:00 +00:00
aasmcnst.pas * extend tai_typedconstbuilder with the ability to add an indirect symbol to the same section as the one that's generated for the constant data (at least if it's also rodata) 2017-01-29 17:39:52 +00:00
aasmdata.pas * keep track of the sections that are created in the asmlists 2017-02-10 14:38:53 +00:00
aasmdef.pas * add ability to disable the generation of an indirect symbol if needed (useful if that's done by the constant builder) 2017-01-29 17:42:00 +00:00
aasmsym.pas + added volatility information to all memory references 2016-11-27 18:17:37 +00:00
aasmtai.pas * keep track of the sections that are created in the asmlists 2017-02-10 14:38:53 +00:00
aggas.pas Fix section alignment code for GNU assembler for smartlinked objects on aix system 2017-04-22 08:48:23 +00:00
aopt.pas + added new compiler debug ifdef DEBUG_INSTRUCTIONREGISTERDEPENDENCIES, which 2017-04-27 13:40:58 +00:00
aoptbase.pas + take into account the x86 segment register in TAOptBase.RegInRef 2017-05-04 14:08:00 +00:00
aoptda.pas
aoptobj.pas * SkipLabels moved to aoptutils 2017-05-06 21:07:02 +00:00
aoptutils.pas * unified usage of MatchOpType 2017-05-07 16:18:33 +00:00
assemble.pas * only generate a big obj COFF file if the high bound of the sections is larger than $7fff (it could be that the final count is smaller again as sections that have the same name are combined) 2017-02-10 14:40:23 +00:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas
cfidwarf.pas
cfileutl.pas
cg64f32.pas + implemented the in_neg_assign_x and in_not_assign_x inline nodes, which will 2017-04-07 16:02:40 +00:00
cgbase.pas + added individual bits of the x86 flags register as subregisters 2017-04-26 13:52:52 +00:00
cghlcpu.pas
cgobj.pas + mask only the low bits that matter for the const of OP_ROL and OP_ROR in 2017-05-01 14:18:37 +00:00
cgutils.pas + added volatility information to all memory references 2016-11-27 18:17:37 +00:00
cmsgs.pas
comphook.pas
compiler.pas
compinnr.inc + implemented the sar/shl/shr/rol/ror inline modify-in-place nodes; the actual 2017-04-12 00:41:15 +00:00
comprsrc.pas
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas - don't apply const_align() to alignments passed to high level typed 2016-10-06 06:25:02 +00:00
cstreams.pas
cutils.pas + align(<int64>,<int64>) and align(<qword>,<qword>), resolves an issue reported on the mailing list with large records 2017-03-26 09:35:56 +00:00
cwindirs.pp
dbgbase.pas
dbgdwarf.pas * use create_int_dataptr_unaligned instead of create_pint_unaligned in TDebugInfoDwarf.appendsym_absolute 2016-11-07 15:41:44 +00:00
dbgstabs.pas
dbgstabx.pas
defcmp.pas * indeed allow the conversion of array constructors to dynamic arrays 2017-05-04 21:54:27 +00:00
defutil.pas + added helper function are_equal_ints() 2017-04-10 13:22:50 +00:00
dirparse.pas - disable -Ooregvar for the LLVM-based x86-64 code generator, as it causes 2016-12-04 11:15:12 +00:00
elfbase.pas
entfile.pas fix build with generic_cpu defined after r35497 2017-03-01 15:32:12 +00:00
export.pas
expunix.pas * create stubs for library exports on Unix at at the node tree level instead 2016-12-09 13:39:38 +00:00
finput.pas
fmodule.pas atari: tos is no longer a define, so use atari to define shortasmprefix 2017-03-01 15:14:46 +00:00
fpccrc.pas
fpcdefs.inc + enable using the cg64 ops OP_SHR/OP_SHL/OP_SAR on i386 for implementing the 2017-04-18 14:36:41 +00:00
fpcp.pas
fpkg.pas
fppu.pas * write full path name when ppu crc checks fail/conflict (patch by 2017-04-17 20:42:03 +00:00
gendef.pas
globals.pas + support for specifying ms_abi_default, ms_abi_cdelc, sysv_abi_default, and 2017-02-11 19:57:12 +00:00
globstat.pas
globtype.pas * moved the conversion of "x:=x op k" to inline nodes to a separate optimization 2017-04-26 22:44:01 +00:00
hlcg2ll.pas + added volatility information to all memory references 2016-11-27 18:17:37 +00:00
hlcgobj.pas * only initialize global regvars in unit and main program init code 2017-02-21 07:37:15 +00:00
htypechk.pas - remove no longer needed global variable allow_array_constructor 2017-05-04 21:58:14 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas
macho.pas
machoutils.pas
Makefile Regenerate all Makefile's after changes related to FPCDIR checks 2017-04-18 14:15:47 +00:00
Makefile.fpc Revert Makefile changes unrelated to last commit about powerpc-aix cycle fix 2017-01-10 23:36:32 +00:00
MPWMake
msgidx.inc + write name of segment/group which is too large 2017-02-19 19:15:18 +00:00
msgtxt.inc + write name of segment/group which is too large 2017-02-19 19:15:18 +00:00
nadd.pas * use resultdef for the type of the resulting zero const from the '0*x' and 2017-05-01 18:11:12 +00:00
nbas.pas * more nodedata printing fixes, similiar to r35477 2017-02-25 15:41:39 +00:00
ncal.pas - remove no longer needed global variable allow_array_constructor 2017-05-04 21:58:14 +00:00
ncgadd.pas * add/sub nodes with nf_internal set should not do overflow checking, resolves #30889 2016-11-13 21:18:39 +00:00
ncgbas.pas * keep track of the sections that are created in the asmlists 2017-02-10 14:38:53 +00:00
ncgcal.pas syscalls: unify call reference creation across 4 different CPU archs. less copypasted code, brings x86_64 AROS support up to speed 2016-12-02 09:29:09 +00:00
ncgcnv.pas + tcgtypeconvnode.second_class_to_intf supports LOC_CONSTANT as well, resolves #31596 2017-03-25 10:27:29 +00:00
ncgcon.pas * moved the floating point constant range checking code from 2016-11-29 21:54:33 +00:00
ncgflw.pas * Removed unused vars. 2017-03-07 08:56:07 +00:00
ncghlmat.pas
ncginl.pas + implemented inline code generation for 64-bit sar (the SarInt64 intrinsic) on 2017-04-30 16:06:34 +00:00
ncgld.pas * compilation with -Oodfa fixed 2017-03-09 22:09:43 +00:00
ncgmat.pas * on 16-bit CPUs, avoid the unnecessary 32-bit conversion of the right shl/shr 2017-04-04 21:01:20 +00:00
ncgmem.pas + added volatility information to all memory references 2016-11-27 18:17:37 +00:00
ncgnstfl.pas * fixed interprocedural gotos for llvm 2016-11-21 07:39:13 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas + added volatility information to all memory references 2016-11-27 18:17:37 +00:00
ncgopt.pas + added volatility information to all memory references 2016-11-27 18:17:37 +00:00
ncgrtti.pas * Rtti info about Management Operators (MO) in init table for records. Note: commit contains minimal changes for RTL (for proper "make") no functional changes. More RTL changes for fully functionally MO in next commits. 2017-02-19 00:22:59 +00:00
ncgset.pas * Removed unused vars. 2017-05-04 10:38:49 +00:00
ncgutil.pas - remove no longer needed gen_fpc_dummy() 2017-01-29 22:40:36 +00:00
ncgvmt.pas * ensure that the indirect symbols for VMT, RTTI and IID reside in the same sections as the symbols they point to -> reduces the amount of sections for them by half 2017-01-29 17:43:39 +00:00
ncnv.pas * when explicitly casting a variable, it might be sufficient if it is const_regable 2017-05-06 18:47:45 +00:00
ncon.pas * fixed compilation of 64-bit cross-compilers on 32 bit platforms 2017-03-06 21:37:34 +00:00
nflw.pas * create_for_in_loop: if there's a choice between iterating an array and a set then prefer the set for backwards compatibility 2017-05-04 21:38:00 +00:00
ngenutil.pas * fixed bugs in r33737: that revision was supposed to only move 2017-02-20 22:15:34 +00:00
ngtcon.pas * Removed unused vars. 2017-03-07 08:56:07 +00:00
ninl.pas * fixed a bug in the maxqword check in the Rol/RorQWord(maxqword,x)->maxqword 2017-05-03 15:32:48 +00:00
nld.pas * tarrayconstructornode: force conversion to set if there's a range node in the tree 2017-05-04 21:55:12 +00:00
nmat.pas + optimize '0 shl x' and '0 shr x' to 0 2017-05-01 18:16:38 +00:00
nmem.pas * partial fix for Mantis #30831 (partial, because no exception has been encountered yet): when checking whether the left node of a vmtaddrnode is a generic, don't rely on df_generic, but instead use is_generic which checks for a true generic (the other will also be true if it's merely a structured type declared (or specialized) inside another generic) 2016-11-18 14:43:45 +00:00
nobj.pas * fix for issue #29936: check if the internal needed types are available 2017-01-15 20:54:07 +00:00
nobjc.pas
node.pas - removed some dataconstn remenants 2017-01-16 21:27:20 +00:00
nopt.pas * keep track of allow_array_constructor as part of the array constructor node 2017-05-04 21:52:21 +00:00
nset.pas * create jmp trees for really big case statements 2017-03-23 17:50:53 +00:00
nutils.pas * mark the sar/shl/shr/rol/ror_assign nodes as having side effects 2017-04-12 12:17:08 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas * use .create_int_dataptr instead of .create_pint in the remaining two places where .create_pint is used 2016-11-07 15:09:07 +00:00
objcutil.pas
ogbase.pas
ogcoff.pas + align(<int64>,<int64>) and align(<qword>,<qword>), resolves an issue reported on the mailing list with large records 2017-03-26 09:35:56 +00:00
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
ogomf.pas + write name of segment/group which is too large 2017-02-19 19:15:18 +00:00
omfbase.pas * use OMF section names, starting with dot for the dwarf debug info for 2016-10-12 13:05:12 +00:00
optbase.pas
optconstprop.pas + enable constant propagation across 2-parameter inc()/dec() calls 2017-04-26 23:21:44 +00:00
optcse.pas
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas Disable threading and dynlibs features for msdos OS target by default 2017-05-05 15:03:47 +00:00
optloadmodifystore.pas * moved the conversion of "x:=x op k" to inline nodes to a separate optimization 2017-04-26 22:44:01 +00:00
optloop.pas
opttail.pas
optutils.pas
optvirt.pas
owar.pas
owbase.pas
owomflib.pas
parabase.pas + initial implementation of the RTTI for parameter locations (not *yet* used by anything) 2017-01-06 22:21:37 +00:00
paramgr.pas + initial implementation of the RTTI for parameter locations (not *yet* used by anything) 2017-01-06 22:21:37 +00:00
parser.pas - remove no longer needed global variable allow_array_constructor 2017-05-04 21:58:14 +00:00
pass_1.pas
pass_2.pas - removed some dataconstn remenants 2017-01-16 21:27:20 +00:00
pbase.pas
pcp.pas
pdecl.pas * use pocalls_cdecl and cstylearrayofconst more consistently instead of 2017-02-25 11:46:35 +00:00
pdecobj.pas New tokens for new management operators: Initialize, Finalize, AddRef and Copy. Small code adjustment for parser (pdecobj.pas, pstatmnt.pas, psub.pas, ptype.pas) was required because few of old token has from now value which is outside range of set: _CONSTRUCTOR, _FINALIZATION. 2017-02-18 18:12:45 +00:00
pdecsub.pas * if an operator overload in a structured type is invalid print an error only for the declaration and not the implementation as well 2017-04-07 13:24:58 +00:00
pdecvar.pas
pexports.pas
pexpr.pas - remove no longer needed global variable allow_array_constructor 2017-05-04 21:58:14 +00:00
pgentype.pas
pgenutil.pas * if an operator overload in a structured type is invalid print an error only for the declaration and not the implementation as well 2017-04-07 13:24:58 +00:00
pinline.pas
pkgutil.pas * changed ncgutil.has_alias_name(pd,s) to a method of tprocdef 2016-12-09 13:39:28 +00:00
pmodules.pas * generate the package stub for all Windows and NativeNT targets 2017-01-29 22:39:34 +00:00
pp.lpi - removed missing file from project 2017-04-30 20:48:35 +00:00
pp.pas * set pe flag on win32 for the pp executable that it is "large aware" (tested by allocating 1.5 GB before real compilation starts, no regressions found), resolves #31517 2017-03-11 14:59:37 +00:00
pparautl.pas * use sizesinttype instead of ptrsinttype for the index and high parameter of 2016-10-08 13:56:24 +00:00
ppc68k.lpi
ppc8086.lpi * moved the conversion of "x:=x op k" to inline nodes to a separate optimization 2017-04-26 22:44:01 +00:00
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas Store informations about management operators in ppu files for records. 2017-02-18 18:43:25 +00:00
ppx86_64.lpi
procinfo.pas + added volatility information to all memory references 2016-11-27 18:17:37 +00:00
pstatmnt.pas New tokens for new management operators: Initialize, Finalize, AddRef and Copy. Small code adjustment for parser (pdecobj.pas, pstatmnt.pas, psub.pas, ptype.pas) was required because few of old token has from now value which is outside range of set: _CONSTRUCTOR, _FINALIZATION. 2017-02-18 18:12:45 +00:00
psub.pas * moved the conversion of "x:=x op k" to inline nodes to a separate optimization 2017-04-26 22:44:01 +00:00
psystem.pas * use sizesinttype instead of ptrsinttype for the index and high parameter of 2016-10-08 13:56:24 +00:00
ptconst.pas
ptype.pas New tokens for new management operators: Initialize, Finalize, AddRef and Copy. Small code adjustment for parser (pdecobj.pas, pstatmnt.pas, psub.pas, ptype.pas) was required because few of old token has from now value which is outside range of set: _CONSTRUCTOR, _FINALIZATION. 2017-02-18 18:12:45 +00:00
raatt.pas * fixed check to determine whether a record parameter can be subscripted 2017-04-26 19:43:35 +00:00
rabase.pas
rasm.pas
rautils.pas * fixed check to determine whether a record parameter can be subscripted 2017-04-26 19:43:35 +00:00
README.txt
rescmn.pas
rgbase.pas + added individual bits of the x86 flags register as subregisters 2017-04-26 13:52:52 +00:00
rgobj.pas * Reverted r34524 - workaround for compiling with -gc. It is not needed anymore since cycle completes with -gc. 2017-03-07 09:30:16 +00:00
scandir.pas atari: enable apptype directive, and change exe extension when compiling a GUI app 2016-12-30 10:27:27 +00:00
scanner.pas * Move global variable in_preproc_comp_expr into tscannerfile class. 2017-05-06 12:12:50 +00:00
script.pas * fix some more occured->occured 2016-12-13 12:55:32 +00:00
switches.pas
symbase.pas
symconst.pas * Rtti info about Management Operators (MO) in init table for records. Note: commit contains minimal changes for RTL (for proper "make") no functional changes. More RTL changes for fully functionally MO in next commits. 2017-02-19 00:22:59 +00:00
symcreat.pas + introduce a new potype for the main stub of a package library (which on Windows is simply a DLLMain returning True) 2017-01-29 22:37:40 +00:00
symdef.pas * tarraydef.setelementdef: don't call size for array constructors as they'll only have one once they're converted to dynamic arrays 2017-05-04 20:57:06 +00:00
symsym.pas * spacing fixed 2017-05-06 18:47:43 +00:00
symtable.pas * Move global variable in_preproc_comp_expr into tscannerfile class. 2017-05-06 12:12:50 +00:00
symtype.pas marked a few uses of TConstExprInt as const during parameter passing, to avoid a few unnecessary record copying 2017-03-03 17:29:59 +00:00
symutil.pas
syscinfo.pas * refactored syscall types for unified naming,first bits of ARM AROS syscall support 2016-11-06 12:41:56 +00:00
systems.inc webassembly: reserve a system id and cpu id slot for the platform 2017-03-01 15:15:58 +00:00
systems.pas Fix FreeBSD cycle starting for release compiler after FPSysCtl interface change 2017-03-13 21:33:09 +00:00
tgobj.pas + added volatility information to all memory references 2016-11-27 18:17:37 +00:00
tokens.pas * symtable.pas: 2017-02-18 19:27:53 +00:00
verbose.pas
version.pas
widestr.pas
wpo.pas
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