fpc/compiler
florian 0cd521fc8b + ATmega48/ATmega88 support
git-svn-id: trunk@30937 -
2015-05-30 17:55:49 +00:00
..
aarch64 * removed OS check when loading the address of a symbol on AArch64, it's 2015-05-24 16:50:13 +00:00
arm Added Freescale MK20D7 controller support. 2015-05-28 11:46:22 +00:00
avr + ATmega48/ATmega88 support 2015-05-30 17:55:49 +00:00
generic o fixes handling of iso i/o parameters/program parameters: 2015-05-01 20:58:31 +00:00
html
i386 * pass dyn. arrays in registers when i386 register calling conventions are used 2015-05-16 20:27:09 +00:00
i8086 * implemented r30870 for all platforms: pass dyn. array parameters like pointer parameters so typically in a register 2015-05-17 12:29:28 +00:00
jvm * moved Jasmin assembler writer to jvm backend directory 2015-05-09 17:25:18 +00:00
llvm * cache and reuse procvardefs internally created to get the address of a 2015-05-14 15:36:20 +00:00
m68k * correctly handle LOC_SUBSETREG,LOC_CSUBSETREG,LOC_SUBSETREF,LOC_CSUBSETREF in second_int_to_bool, resolves issue #28007 2015-05-02 13:52:50 +00:00
mips * correctly handle LOC_SUBSETREG,LOC_CSUBSETREG,LOC_SUBSETREF,LOC_CSUBSETREF in second_int_to_bool, resolves issue #28007 2015-05-02 13:52:50 +00:00
msg * Update of German error message files by Karl-Michael Schindler, resolves issue #28010 2015-05-02 13:34:03 +00:00
powerpc * implemented r30870 for all platforms: pass dyn. array parameters like pointer parameters so typically in a register 2015-05-17 12:29:28 +00:00
powerpc64 * implemented r30870 for all platforms: pass dyn. array parameters like pointer parameters so typically in a register 2015-05-17 12:29:28 +00:00
ppcgen * correctly handle LOC_SUBSETREG,LOC_CSUBSETREG,LOC_SUBSETREF,LOC_CSUBSETREF in second_int_to_bool, resolves issue #28007 2015-05-02 13:52:50 +00:00
sparc * correctly handle LOC_SUBSETREG,LOC_CSUBSETREG,LOC_SUBSETREF,LOC_CSUBSETREF in second_int_to_bool, resolves issue #28007 2015-05-02 13:52:50 +00:00
systems Added Freescale MK20D7 controller support. 2015-05-28 11:46:22 +00:00
utils + Aarch64 support in the fpc binary (patch by Edmund Grimley Evans) 2015-05-22 09:25:08 +00:00
x86 + implemented support for the 'dgroup' (addr_dgroup) relocation type in the omf 2015-05-04 17:07:19 +00:00
x86_64 * don't replace classrefdef with i64 in parameter locations (so llvm can use 2015-05-03 16:51:23 +00:00
aasmbase.pas + tasmlabel.createstatic() constructor for creating static data labels 2015-03-27 21:25:40 +00:00
aasmcnst.pas * since we insert the internal ansistring record types in the symtable of 2015-05-17 18:11:13 +00:00
aasmdata.pas + tasmlabel.createstatic() constructor for creating static data labels 2015-03-27 21:25:40 +00:00
aasmsym.pas * moved (unfinished) routines related to writing taicpu's to ppu files 2007-01-02 18:28:05 +00:00
aasmtai.pas + support for llvm "undef" operand 2015-04-19 21:37:27 +00:00
aggas.pas + DEBUG_AGGAS: tais like tai_marker are written as comments 2015-04-26 17:19:30 +00:00
aopt.pas - removed long deprecated/buggy assembler cse optimiser for i386 2015-05-09 17:25:07 +00:00
aoptbase.pas * simplified RegInInstruction() and fixed range errors 2013-11-06 10:46:22 +00:00
aoptcs.pas * RefsHaveIndexReg -> cpurefshaveindexreg 2012-03-10 19:43:52 +00:00
aoptda.pas * moved field definitions before method/property definitions (see mantis 2009-06-27 11:27:31 +00:00
aoptobj.pas * IsJumpToLabel checks number of operands 2015-04-05 19:24:22 +00:00
assemble.pas * refactored "ar" object writer creation in the internal assembler to allow 2015-04-19 16:35:16 +00:00
blockutl.pas
browcol.pas
catch.pas - disabled installation of SIGINT signal handler for Darwin, because 2009-02-28 18:07:21 +00:00
ccharset.pas
cclasses.pas * reimplemented r28329 in a different way, as suggested by Jonas 2014-08-07 19:36:52 +00:00
cfidwarf.pas * fix error in cfidwarf rev 16062 for non-windows systems 2010-09-30 07:41:19 +00:00
cfileutl.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
cg64f32.pas + support 8 locations in splitparaloc64 2015-04-10 20:32:22 +00:00
cgbase.pas * due to avr's harvard architecture, loads of code labels need to use the gs(...) macro 2015-04-12 20:29:13 +00:00
cghlcpu.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
cgobj.pas * call also optimize_op_const in the generic a_op_const_reg_reg 2015-04-19 10:04:57 +00:00
cgutils.pas Avoid line longer than 255 characters, to be able to edit inside FP IDE 2015-03-10 07:56:18 +00:00
cmsgs.pas
comphook.pas + don't abuse status.currentsourcepath to pass on PPU names if the source is unavailable, causes side effects with other frontends (like the IDE). Improved solution for Mantis #27588 2015-03-29 19:05:19 +00:00
compiler.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
compinnr.inc - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
comprsrc.pas + ELF/ppc64le resource support 2015-03-14 18:36:32 +00:00
constexp.pas
COPYING.txt
cpid.pas
crefs.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
cresstr.pas * changed emit_ansistring_const() and emit_unicodestring_const() into 2015-03-27 21:25:53 +00:00
cstreams.pas
cutils.pas
cwindirs.pp
dbgbase.pas
dbgdwarf.pas * renamed getdatalabel() to getglobaldatalabel 2015-03-27 21:25:34 +00:00
dbgstabs.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
dbgstabx.pas
defcmp.pas Fix for Mantis #27750. 2015-04-24 14:51:22 +00:00
defutil.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
dirparse.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
elfbase.pas + Added values for DT_FLAGS and DT_FLAGS_1 dynamic tags. 2013-03-29 14:46:44 +00:00
export.pas
expunix.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
finput.pas * return false, if tdosinputfile.fileopen cannot open a file for reading 2015-02-22 15:52:54 +00:00
fmodule.pas * cache and reuse procvardefs internally created to get the address of a 2015-05-14 15:36:20 +00:00
fpccrc.pas * Add -Xg to help pages 2008-01-17 01:20:37 +00:00
fpcdefs.inc * define TSymStr as ansistring for llvm, as its type definitions can be quite long 2015-04-15 18:29:44 +00:00
fppu.pas + commented directive for easier enabling 2015-02-23 22:11:26 +00:00
gendef.pas
globals.pas * synchronised with trunk till r30240 2015-03-15 19:44:58 +00:00
globstat.pas
globtype.pas - removed long deprecated/buggy assembler cse optimiser for i386 2015-05-09 17:25:07 +00:00
hlcg2ll.pas * synchronised with trunk till r30240 2015-03-15 19:44:58 +00:00
hlcgobj.pas * fixed reference/register types for thlcgobj.a_bit_test_* 2015-04-25 15:51:22 +00:00
htypechk.pas * never keep a value in a register for llvm if it's typecasted on the 2015-04-25 15:50:55 +00:00
impdef.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
import.pas * refactor import library generation 2006-09-03 19:22:31 +00:00
ldscript.pas + Basic ld script parsing capabilities (barely enough to parse glibc2.1 'libc.so' files, lacks any error handling). 2012-08-21 08:37:39 +00:00
link.pas * prepend "+" to each file name to be added to the library by wlib. This 2015-03-23 01:19:19 +00:00
macho.pas * fixed comments for some comments, they were offset by one line (patch by 2010-12-24 15:58:41 +00:00
machoutils.pas
Makefile * regenerated Makefiles with Linux/AArch64 support 2015-05-20 20:15:10 +00:00
Makefile.fpc - removed partial Alpha, IA64 and vis backends since they were never nor 2015-05-09 17:25:11 +00:00
MPWMake
msgidx.inc * fixed typos in error.msg (patch by Stéphane Aulery, mantis #27931) 2015-04-25 18:15:18 +00:00
msgtxt.inc * fixed typos in error.msg (patch by Stéphane Aulery, mantis #27931) 2015-04-25 18:15:18 +00:00
nadd.pas * do not use 16 Bit mul helper on avr, the code generator generates 2015-04-27 20:51:32 +00:00
nbas.pas * Improved handling of registers used in assembler blocks. Assembler nodes no longer have lists of used registers attached to them. Instead, each specified register creates an allocation/deallocation pair and an additional tai_regalloc.markused item directly in the asmlist. This way, register lists are no longer limited to integer registers, and parsing no longer depends on paramanager to know which registers are volatile. 2015-02-25 21:53:15 +00:00
ncal.pas * fixed memory leaks introduced in r30908 2015-05-25 15:10:16 +00:00
ncgadd.pas * fixed pointer plus/minus integer on llvm (since a_op_* only gets a single 2015-03-05 22:45:32 +00:00
ncgbas.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
ncgcal.pas * cache and reuse procvardefs internally created to get the address of a 2015-05-14 15:36:20 +00:00
ncgcnv.pas * fixed the type of FPC_EMPTYCHAR when referencing it 2015-05-03 16:51:16 +00:00
ncgcon.pas * fixed memory leak due to double allocation of typedconstbuilder and wrong 2015-05-14 14:42:32 +00:00
ncgflw.pas + added tasmlist parameter to getintparaloc() (needed for llvm) 2015-04-04 14:29:16 +00:00
ncghlmat.pas
ncginl.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
ncgld.pas * fixed types for shortstring handling in tcgassignmentnode.pass_generate_code 2015-04-25 15:51:19 +00:00
ncgmat.pas + added tasmlist parameter to getintparaloc() (needed for llvm) 2015-04-04 14:29:16 +00:00
ncgmem.pas * fix tcgvecnode.update_reference_reg_packed if OS_INT<>OS_ADDR 2015-04-19 10:34:14 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * fixed writing rtti published property getter/setter/stored proc info in the 2014-09-30 01:47:17 +00:00
ncgset.pas * all the cg/hlcg routines take normally tcgint constants, so replace aint constants and casts in ncgset by tcgint ones 2015-04-12 20:32:37 +00:00
ncgutil.pas * fixed memory leaks due to missing frees of temporary tcgpara locations 2015-05-14 14:42:35 +00:00
ncgvmt.pas * cache and reuse procvardefs internally created to get the address of a 2015-05-14 15:36:20 +00:00
ncnv.pas * unified code to remove unnecessary type casts to support also removals of type conversions between smaller ints 2015-04-25 21:18:34 +00:00
ncon.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nflw.pas * synchronised with trunk till r30345 2015-03-28 12:28:15 +00:00
ngenutil.pas + added a hook to insert object-global information into the asmlists (will 2015-04-19 21:37:43 +00:00
ngtcon.pas * fix tasmlisttypedconstbuilder memory leaks 2015-05-14 14:42:25 +00:00
ninl.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
nld.pas * keep track of the reason why a loadparentfpnode has been created: to 2015-02-23 22:53:59 +00:00
nmat.pas * when creating code for an iso mod operator, use create_internal for the helper nodes 2015-03-21 22:57:19 +00:00
nmem.pas * use Object_getClass(obj) instead of obj._class to get the class of an 2015-02-26 21:49:08 +00:00
nobj.pas * TVMTBuilder.intf_allocate_vtbls: fixed the Ioffset calculation in i8086 far 2014-05-03 17:05:50 +00:00
nobjc.pas * do not crash but give a fatal error when using Objective-Pascal code 2010-04-24 12:49:16 +00:00
node.pas
nopt.pas
nset.pas - removed some more unnecessary code after r30855 2015-05-14 17:44:37 +00:00
nstate.pas
nutils.pas * record a load node for the self/vmt tree of the current routine in the 2015-05-25 12:55:40 +00:00
objcdef.pas
objcgutl.pas * AArch64 also uses the non-fragile Objective-C ABI 2015-02-23 22:51:31 +00:00
objcutil.pas * we cannot directly load the ISA pointer on AArch64, we have to call the 2015-02-23 22:54:18 +00:00
ogbase.pas + implemented support for the 'dgroup' (addr_dgroup) relocation type in the omf 2015-05-04 17:07:19 +00:00
ogcoff.pas * refactored "ar" object writer creation in the internal assembler to allow 2015-04-19 16:35:16 +00:00
ogelf.pas * refactored "ar" object writer creation in the internal assembler to allow 2015-04-19 16:35:16 +00:00
oglx.pas
ogmacho.pas * refactored "ar" object writer creation in the internal assembler to allow 2015-04-19 16:35:16 +00:00
ogmap.pas
ognlm.pas * refactored "ar" object writer creation in the internal assembler to allow 2015-04-19 16:35:16 +00:00
ogomf.pas + set CObjData in the TMZExeOutput constructor 2015-05-15 22:35:32 +00:00
omfbase.pas + finished the internal omf library writer (implementing writing of the library 2015-04-21 23:31:02 +00:00
optbase.pas
optconstprop.pas
optcse.pas + do cse on length as well 2015-04-26 20:11:45 +00:00
optdead.pas * factored out the check for whether we have to generate dotted function 2015-03-14 18:35:25 +00:00
optdeadstore.pas
optdfa.pas * handle raise nodes in dfa on jvm, resolves #27416 2015-02-07 18:11:02 +00:00
options.pas + create defines for CPU ALU size 2015-04-05 19:09:28 +00:00
optloop.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
opttail.pas
optutils.pas
optvirt.pas
owar.pas * call ArSymbols.Free instead of .Destroy in the tarobjectreader destructor 2015-05-02 10:50:29 +00:00
owbase.pas * refactored "ar" object writer creation in the internal assembler to allow 2015-04-19 16:35:16 +00:00
owomflib.pas + implemented TOmfLibObjectReader.openfile 2015-05-03 10:56:09 +00:00
parabase.pas
paramgr.pas * fixed memory leaks and multiple recalculation regarding function result 2015-05-14 14:42:28 +00:00
parser.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
pass_1.pas
pass_2.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pbase.pas Rework the way how "specialize" is handled. Instead of initializing the specialization of a full type declaration (including unit name and parent types) it is now considered part of the specialized type itself. This means that for example the following code: 2015-02-20 16:23:40 +00:00
pdecl.pas * changed temporary type_e_anonymous_function_unsupported message into an 2015-04-19 14:31:35 +00:00
pdecobj.pas * fixed detection of an objcprotocols descending from a forward-defined 2015-03-12 19:37:43 +00:00
pdecsub.pas Specialize the correct generic if it has the same name as another generic that is located at another place of the type hierarchy. 2015-02-20 16:28:44 +00:00
pdecvar.pas * store the to be used recordalignmin and maxcrecordalign settings inside 2015-03-27 21:25:56 +00:00
pexports.pas
pexpr.pas * parentheses after an @-operator can contain a full expression, resolves #27517 2015-03-22 13:00:43 +00:00
pgenutil.pas Fix for Mantis #27750. 2015-04-24 14:51:22 +00:00
pinline.pas * handle records in iso mode properly if no tag-field is given 2014-12-11 19:21:13 +00:00
pmodules.pas o fixes handling of iso i/o parameters/program parameters: 2015-05-01 20:58:31 +00:00
pp.lpi
pp.pas
pparautl.pas * copy arrays passed by value to cdecl routines on the callee side even on 2015-02-23 22:50:29 +00:00
ppc68k.lpi
ppc8086.lpi - removed agjasmin.pas from the ppc8086.lpi (plus other changes lazarus insists on doing) 2015-05-15 22:27:35 +00:00
ppcaarch64.lpi
ppcarm.lpi Rebase to trunk revision 2015-02-15 16:08:18 +00:00
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi * project file updates 2012-09-08 21:58:45 +00:00
ppcppc.lpi * project file updates 2012-09-08 21:58:45 +00:00
ppcsparc.lpi
ppheap.pas * Only -dextheaptrc sets keepreleased to tue (meaning no memory is really released by heaptrc memory manager) 2012-09-19 07:57:31 +00:00
ppu.pas * increased ppu version after r30907 2015-05-25 13:04:36 +00:00
ppx86_64.lpi
procinfo.pas * reduce dependencies of the procinfo unit 2015-05-16 21:49:42 +00:00
pstatmnt.pas fixed a warning with DFA 2015-02-26 09:36:03 +00:00
psub.pas * reduce dependencies of the procinfo unit 2015-05-16 21:49:42 +00:00
psystem.pas * store the to be used recordalignmin and maxcrecordalign settings inside 2015-03-27 21:25:56 +00:00
ptconst.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
ptype.pas * store the to be used recordalignmin and maxcrecordalign settings inside 2015-03-27 21:25:56 +00:00
raatt.pas * merged ait_set and ait_thumb_set into a single tai class 2015-03-14 18:35:28 +00:00
rabase.pas
rasm.pas * Moved local label infrastructure into tasmreader, reduces number of global vars. Functionality is not changed. 2014-04-05 09:43:13 +00:00
rautils.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
README.txt
regvars.pas
rescmn.pas
rgbase.pas Use TRegNameTable instead of array[tregisterindex] of string[10] 2012-10-22 10:23:21 +00:00
rgobj.pas * check registers of ait_regalloc for a valid color when translating and compiling with -dextdebug 2015-04-05 19:06:06 +00:00
scandir.pas
scanner.pas + support for {$I %CURRENTROUTINE%} 2015-05-16 22:22:26 +00:00
script.pas
switches.pas
symbase.pas * prevent new definitions being added to a global unit symtable after compilation of the implementation part started 2015-02-23 22:10:46 +00:00
symconst.pas o fixes handling of iso i/o parameters/program parameters: 2015-05-01 20:58:31 +00:00
symcreat.pas * store the to be used recordalignmin and maxcrecordalign settings inside 2015-03-27 21:25:56 +00:00
symdef.pas * cache and reuse procvardefs internally created to get the address of a 2015-05-14 15:36:20 +00:00
symnot.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
symsym.pas o fixes handling of iso i/o parameters/program parameters: 2015-05-01 20:58:31 +00:00
symtable.pas o fixes handling of iso i/o parameters/program parameters: 2015-05-01 20:58:31 +00:00
symtype.pas
symutil.pas
systems.inc + Linux/AArch64 compiler support (patch by Edmund Grimley Evans) 2015-05-22 09:25:05 +00:00
systems.pas + Linux/AArch64 compiler support (patch by Edmund Grimley Evans) 2015-05-22 09:25:05 +00:00
tgobj.pas * silence another warning from r30449 2015-04-06 16:42:27 +00:00
tokens.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
verbose.pas + don't abuse status.currentsourcepath to pass on PPU names if the source is unavailable, causes side effects with other frontends (like the IDE). Improved solution for Mantis #27588 2015-03-29 19:05:19 +00:00
version.pas + initial AArch64 support in systemh.inc, options.pas, version.pas and 2015-02-23 22:52:04 +00:00
widestr.pas * converted widestr.charlength() to use system.Utf8CodePointLen() 2015-03-01 17:12:27 +00:00
wpo.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
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