fpc/compiler
Jeppe Johansen 3ee29eb219 Fixed ARMv7-EM code generation and RTL compilation
Added LM4F120H5 controller type and startup code

git-svn-id: branches/laksen/arm-embedded@22903 -
2012-11-01 17:25:01 +00:00
..
alpha + support for handling OS_128/OS_S128 on 64 Bit CPUs as far as needed for method pointers in registers 2012-09-06 15:12:12 +00:00
arm Fixed ARMv7-EM code generation and RTL compilation 2012-11-01 17:25:01 +00:00
avr Added FPv4_d16 FPU instructions, and a few extra registers 2012-10-08 20:04:14 +00:00
generic
html
i386 * merged avx support in inline assembler developed by Torsten Grundke 2012-10-06 19:47:18 +00:00
ia64 * -O4 switch for optimizations which are correct but which might have unexpected effects 2012-08-09 18:58:54 +00:00
jvm + override unnecessary abstract thlcgobj methods with internal errors 2012-09-02 14:32:31 +00:00
m68k Added FPv4_d16 FPU instructions, and a few extra registers 2012-10-08 20:04:14 +00:00
mips Added FPv4_d16 FPU instructions, and a few extra registers 2012-10-08 20:04:14 +00:00
msg * merged avx support in inline assembler developed by Torsten Grundke 2012-10-06 19:47:18 +00:00
powerpc Added FPv4_d16 FPU instructions, and a few extra registers 2012-10-08 20:04:14 +00:00
powerpc64 Added FPv4_d16 FPU instructions, and a few extra registers 2012-10-08 20:04:14 +00:00
ppcgen * merged avx support in inline assembler developed by Torsten Grundke 2012-10-06 19:47:18 +00:00
sparc Allow testing of delayed pi_needs_got by internal error generated if compiler compiled with -dCHECK_PIC 2012-10-05 14:59:18 +00:00
systems Fixed ARMv7-EM code generation and RTL compilation 2012-11-01 17:25:01 +00:00
utils * merged avx support in inline assembler developed by Torsten Grundke 2012-10-06 19:47:18 +00:00
vis + ossinttype/osuinttype defs that correspond to OS_SINT/OS_INT for use in 2012-05-12 16:03:15 +00:00
x86 Added FPv4_d16 FPU instructions, and a few extra registers 2012-10-08 20:04:14 +00:00
x86_64 * support of avx register requires now proper usage of R_SUBMMWHOLE 2012-10-07 18:47:17 +00:00
aasmbase.pas * cleanup some unused units from uses clauses 2012-09-21 18:53:46 +00:00
aasmdata.pas * cleanup some unused units from uses clauses 2012-09-21 18:53:46 +00:00
aasmsym.pas
aasmtai.pas Added support for .section, .set, .weak, and .thumb_set directive for GAS assembler reader 2012-10-08 03:10:44 +00:00
aggas.pas Added support for .section, .set, .weak, and .thumb_set directive for GAS assembler reader 2012-10-08 03:10:44 +00:00
agjasmin.pas * mark Java inner interfaces as "static abstract" like javac, solves the 2012-08-30 22:30:32 +00:00
aopt.pas * more consistent updates of used registers 2012-08-22 19:52:15 +00:00
aoptbase.pas + RegModifiedBetween 2012-08-23 21:03:14 +00:00
aoptcs.pas * RefsHaveIndexReg -> cpurefshaveindexreg 2012-03-10 19:43:52 +00:00
aoptda.pas
aoptobj.pas * ignore alignment entries in FindLabel 2012-09-04 10:43:44 +00:00
asmutils.pas * create new object file when creating new section for ansistring/ 2012-09-17 22:30:16 +00:00
assemble.pas Handle new unaligned constant types 2012-10-02 22:30:22 +00:00
browcol.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
bsdcompile
catch.pas
ccharset.pas
cclasses.pas + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
cfidwarf.pas
cfileutl.pas * GNU ld only supports double quotes in its response file -> requote there 2012-05-03 12:41:16 +00:00
cg64f32.pas + support for handling OS_128/OS_S128 on 64 Bit CPUs as far as needed for method pointers in registers 2012-09-06 15:12:12 +00:00
cgbase.pas * merged avx support in inline assembler developed by Torsten Grundke 2012-10-06 19:47:18 +00:00
cghlcpu.pas + cghlcpu unit with thlbasecgcpu class that overrides all abstract tcg 2012-04-28 14:27:31 +00:00
cgobj.pas * support of avx register requires now proper usage of R_SUBMMWHOLE 2012-10-07 18:47:17 +00:00
cgutils.pas + support for handling OS_128/OS_S128 on 64 Bit CPUs as far as needed for method pointers in registers 2012-09-06 15:12:12 +00:00
cmsgs.pas
comphook.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
compiler.pas + AIX target definition and info for the compiler and ppudump 2012-04-11 18:00:29 +00:00
compinnr.inc * first draft to support the popcnt instruction, works so far for x86 with a real popcnt instruction 2012-09-02 20:59:39 +00:00
comprsrc.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
constexp.pas
COPYING.txt
cp437.pas
cp646.pas Use the ccharset unit instead of charset when compiling with 2.6.0 like is done for the other cp* units. 2012-09-19 13:56:25 +00:00
cp850.pas
cp866.pas
cp1251.pas
cp1252.pp
cp8859_1.pas
cp8859_5.pas
cpid.pas
crefs.pas
cresstr.pas * do not create a global symbol in the middle of ansi/unicodestring 2012-05-19 10:19:35 +00:00
cstreams.pas
cutils.pas + more sophisticated code to optimize multiplications on arm 2012-09-03 13:39:45 +00:00
cwindirs.pp
dbgbase.pas * correctly deal with writing debug information in the Stabs writer for class 2012-07-26 14:27:10 +00:00
dbgdwarf.pas * make check for registerhi more usefull 2012-10-07 18:47:13 +00:00
dbgstabs.pas * write objectdef fieldtypes in appenddef_object() instead of in 2012-08-24 16:52:46 +00:00
dbgstabx.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
defcmp.pas Fix for Mantis #21538. 2012-09-25 10:25:30 +00:00
defutil.pas * cleanup some unused units from uses clauses 2012-09-21 18:53:46 +00:00
export.pas
expunix.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
finput.pas Allow compilation of ppudump with -dHEAPTRC command line option 2012-09-19 07:08:35 +00:00
fmodule.pas Fix for Mantis #22160 2012-09-25 09:45:25 +00:00
fpccrc.pas
fpcdefs.inc Remove all traces of the interrupt vector table generation mechanism 2012-10-08 00:10:52 +00:00
fppu.pas Fix for Mantis #22160 2012-09-25 09:45:25 +00:00
gendef.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
globals.pas - get rid of m_all, use a set instead for tokens, this allows to disable/enable tokens depending on the language mode 2012-09-30 21:03:35 +00:00
globstat.pas Fix for Mantis #22160 2012-09-25 09:45:25 +00:00
globtype.pas Remove all traces of the interrupt vector table generation mechanism 2012-10-08 00:10:52 +00:00
hlcg2ll.pas * fix register method pointer for ppc64 and x86_64-linux 2012-09-07 15:15:10 +00:00
hlcgobj.pas * cleanup some unused units from uses clauses 2012-09-21 18:53:46 +00:00
htypechk.pas * treat all "uninitialized" hints as warnings on JVM platforms, because 2012-10-07 09:10:08 +00:00
impdef.pas * moved maybequoted() from cutils to cfileutl and let its behaviour vary 2012-04-16 19:52:36 +00:00
import.pas
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 + 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
macho.pas
machoutils.pas
Makefile Regenerated after: avoid troubles if svnversion is found twice in SEARCHPATH 2012-09-21 14:32:57 +00:00
Makefile.fpc Avoid troubles if svnversion is found twice in SEARCHPATH 2012-09-21 14:32:33 +00:00
MPWMake
msgidx.inc * merged avx support in inline assembler developed by Torsten Grundke 2012-10-06 19:47:18 +00:00
msgtxt.inc * merged avx support in inline assembler developed by Torsten Grundke 2012-10-06 19:47:18 +00:00
nadd.pas Added initial support for the Cortex-M4F FPv4_S16 FPU 2012-10-08 20:10:45 +00:00
nbas.pas * only don't pre-finalize funcret temps that are passed by reference to the 2012-07-23 23:55:00 +00:00
ncal.pas * only remove the calculation of unused parameters of inline routines if 2012-08-26 21:04:46 +00:00
ncgadd.pas * throw an internal error if code generation depends on expectloc but expectloc and real loc do not match 2012-08-13 15:02:55 +00:00
ncgbas.pas * support referencing "result" in nostackframe pure assembler routines if 2012-08-21 19:51:40 +00:00
ncgcal.pas Use SUPPORT_SAFECALL conditional 2012-09-27 15:59:57 +00:00
ncgcnv.pas * nil method pointers can be kept in registers 2012-09-06 15:11:54 +00:00
ncgcon.pas fpcdefs.inc: Set fpc_compiler_has_fixup_jmps for powerpcXX and mips CPUs. 2012-07-09 08:59:13 +00:00
ncgflw.pas Fix safecall for cpus for which NR_FUNCTION_RESULT_REG is different from NR_FUNCTION_RETURN_REG 2012-09-27 15:59:31 +00:00
ncginl.pas * first draft to support the popcnt instruction, works so far for x86 with a real popcnt instruction 2012-09-02 20:59:39 +00:00
ncgld.pas * cleanup some unused units from uses clauses 2012-09-21 18:53:46 +00:00
ncgmat.pas * tcgshlshrnode.second_integer: don't load the right expression into a register if it is already a LOC_CREGISTER 2012-09-04 10:43:48 +00:00
ncgmem.pas * when forcing left into memory during code generation of a subscript node then the type of left must be passed else memory corruption happens 2012-09-13 19:22:42 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas * migrated g_copyshortstring, g_incrrefcount and g_array_rtti_helper to thlcg 2012-06-24 21:36:28 +00:00
ncgrtti.pas Add missing of pi_needs_got found by sparc compiler compiled with -dCHECK_PIC 2012-10-05 15:02:47 +00:00
ncgset.pas * factored out tcginnode.in_smallset 2012-08-11 22:07:36 +00:00
ncgutil.pas Remove all traces of the interrupt vector table generation mechanism 2012-10-08 00:10:52 +00:00
ncnv.pas Add missing of pi_needs_got found by sparc compiler compiled with -dCHECK_PIC 2012-10-05 15:02:47 +00:00
ncon.pas Add pi_needs_got to current_procinfo.flags in pass_1 method if a label reference is used 2012-09-24 15:39:26 +00:00
nflw.pas + implement auto inlining (-Ooautoinline) 2012-05-19 13:30:02 +00:00
ngenutil.pas * factored out code to decide when an asmsym for a staticvarsym has to be 2012-08-25 15:12:39 +00:00
ngtcon.pas * support pointer constants as initialisation values for procvar typed 2012-05-20 14:51:15 +00:00
ninl.pas + support copy with two parameters, resolves #22964 2012-10-07 19:44:52 +00:00
nld.pas * reject assignments to vecn[rangen] (mantis #22941) 2012-09-21 22:42:30 +00:00
nmat.pas * correctly change the signdness information of tordconstnodes that are 2012-05-26 13:31:23 +00:00
nmem.pas Add pi_needs_got to current_procinfo.flags in pass_1 method if a label reference is used 2012-09-24 15:39:26 +00:00
nobj.pas Add missing of pi_needs_got found by sparc compiler compiled with -dCHECK_PIC 2012-10-05 15:02:47 +00:00
nobjc.pas
node.pas * cleanup some unused units from uses clauses 2012-09-21 18:53:46 +00:00
nopt.pas * fixed genmultistringadd() optimization for jvm and enabled it 2012-04-16 20:51:51 +00:00
nset.pas * free temps created for case-of-string-statements 2012-08-16 19:22:23 +00:00
nstate.pas
nutils.pas * fixed indentation 2012-08-26 21:04:51 +00:00
objcdef.pas
objcgutl.pas
objcutil.pas * don't generate a classClass call for objc loadvmtaddrnodes generated 2012-03-29 20:54:47 +00:00
ogbase.pas + Declare AT_TLS and AT_GNU_IFUNC symbol types, these are needed to handle object files created by gcc in ELF internal linker. 2012-09-14 17:22:48 +00:00
ogcoff.pas Accept range/overflow for address computation inside unit 2012-10-01 14:20:54 +00:00
ogelf.pas * Changed TObjSection.WriteStr method to write a zero byte after the string. 2012-09-06 06:06:04 +00:00
oglx.pas
ogmacho.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
ogmap.pas
ognlm.pas + Implemented two-stage removal of empty exe sections. Candidates for removal are first marked with oso_disabled flag, then actually removed. Descendants of TExeOutput that override MemPos_Start may modify list of sections pending removal. In particular, the COFF-specific .reloc section no longer has to be handled in base TExeOutput class. 2012-07-26 10:04:12 +00:00
optbase.pas
optcse.pas * do not apply node CSE to nested loads on high level cpu targets, because 2012-10-02 18:12:24 +00:00
optdead.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
optdfa.pas
options.pas Fix some optimizations which assume that there are 3 operands 2012-10-21 16:20:52 +00:00
optloop.pas * improved for loop unrolling 2012-09-04 21:34:00 +00:00
opttail.pas
optutils.pas
optvirt.pas
owar.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
owbase.pas * Don't access tcfilestream.size 3 times in sequence, as each access costs two seeks (syscalls). 2012-07-12 16:10:34 +00:00
parabase.pas * fixed memory leaks in the compiler introduced in r21862 by marking and 2012-07-23 13:49:29 +00:00
paramgr.pas Use SUPPORT_SAFECALL conditional 2012-09-27 15:57:40 +00:00
parser.pas Fix for Mantis #22160 2012-09-25 09:45:25 +00:00
pass_1.pas
pass_2.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pbase.pas - get rid of m_all, use a set instead for tokens, this allows to disable/enable tokens depending on the language mode 2012-09-30 21:03:35 +00:00
pdecl.pas * cleanup some unused units from uses clauses 2012-09-21 18:53:46 +00:00
pdecobj.pas + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
pdecsub.pas Remove all traces of the interrupt vector table generation mechanism 2012-10-08 00:10:52 +00:00
pdecvar.pas + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
pexports.pas * handle exports with a name consisting of a single character correctly 2012-07-22 14:23:09 +00:00
pexpr.pas + support for <text>^ in iso mode 2012-10-01 17:18:51 +00:00
pgenutil.pas Fix for Mantis #22428. 2012-09-26 15:03:37 +00:00
pinline.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pmodules.pas Remove all traces of the interrupt vector table generation mechanism 2012-10-08 00:10:52 +00:00
pp.lpi * reverted accidental commit in r22568 2012-10-07 19:46:59 +00:00
pp.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
pparautl.pas Use SUPPORT_SAFECALL conditional 2012-09-27 15:57:40 +00:00
ppc68k.lpi * project file updates 2012-09-08 21:58:45 +00:00
ppcarm.lpi * project file updates 2012-09-08 21:58:45 +00:00
ppcavr.lpi * project file updates 2012-09-08 21:58:45 +00:00
ppcmips.lpi * project file updates 2012-09-08 21:58:45 +00:00
ppcmipsel.lpi * project file updates 2012-09-08 21:58:45 +00:00
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 * project file updates 2012-09-08 21:58:45 +00:00
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 * save/restore itype and implementsgetter fields of timplementedinterface 2012-08-29 16:07:55 +00:00
ppx86_64.lpi * version update 2012-06-03 18:55:44 +00:00
procinfo.pas * keep track of required stack frame alignment (this information is however 2012-09-02 14:32:26 +00:00
pstatmnt.pas Do not call ret_in_param of the current parameter manager when parsing a generic method/function. This fixes Mantis #21921. 2012-06-14 12:11:11 +00:00
psub.pas * psub.pas : translate tregister for registerhi also 2012-10-01 14:21:13 +00:00
psystem.pas Added support for .section, .set, .weak, and .thumb_set directive for GAS assembler reader 2012-10-08 03:10:44 +00:00
ptconst.pas * factored out code to decide when an asmsym for a staticvarsym has to be 2012-08-25 15:12:39 +00:00
ptype.pas * fix for mantis #22796: add alignment padding to records before inserting 2012-09-17 14:34:03 +00:00
raatt.pas Added support for .section, .set, .weak, and .thumb_set directive for GAS assembler reader 2012-10-08 03:10:44 +00:00
rabase.pas
rasm.pas
rautils.pas * merged avx support in inline assembler developed by Torsten Grundke 2012-10-06 19:47:18 +00:00
README.txt
regvars.pas
rescmn.pas + fcl-res support for xcoff/aix 2012-04-11 18:06:33 +00:00
rgbase.pas Added initial support for the Cortex-M4F FPv4_S16 FPU 2012-10-08 20:10:45 +00:00
rgobj.pas + DEBUG_REGISTERLIFE define 2012-09-15 17:20:57 +00:00
scandir.pas Partial fix for bug report 22744 2012-08-29 14:35:06 +00:00
scanner.pas - get rid of m_all, use a set instead for tokens, this allows to disable/enable tokens depending on the language mode 2012-09-30 21:03:35 +00:00
script.pas * GNU ld only supports double quotes in its response file -> requote there 2012-05-03 12:41:16 +00:00
switches.pas
symbase.pas
symconst.pas Preparations for upcoming work on generics: 2012-09-13 11:35:35 +00:00
symcreat.pas * support storing the scanner state when the current token is _ID 2012-04-25 22:29:25 +00:00
symdef.pas Remove all traces of the interrupt vector table generation mechanism 2012-10-08 00:10:52 +00:00
symnot.pas
symsym.pas * psub.pas : translate tregister for registerhi also 2012-10-01 14:21:13 +00:00
symtable.pas * allow accessing strict protected symbols from the extended struct inside 2012-10-06 20:31:43 +00:00
symtype.pas + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
symutil.pas
systems.inc Merge of rev21557 by Foxsen 2012-06-13 22:25:38 +00:00
systems.pas Remove all traces of the interrupt vector table generation mechanism 2012-10-08 00:10:52 +00:00
tgobj.pas * keep track of required stack frame alignment (this information is however 2012-09-02 14:32:26 +00:00
tokens.pas * disable non-iso tokens in iso mode 2012-10-01 17:18:42 +00:00
verbose.pas Enable writing of Warnings/Notes/hints if they are considered as errors using -SeX option 2012-09-13 07:34:23 +00:00
version.pas * Restore 'mips' name as cpumipseb source_cpu_string 2012-06-20 23:51:36 +00:00
widestr.pas compiler: add US-ASCII codepage 2012-09-18 01:32:24 +00:00
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