fpc/compiler
peter f704ee2d70 * remove duplicate temp allocation for register saving
* cleanup register saving code by using a procinfo flag if registers
    were saved on the stack

git-svn-id: trunk@9293 -
2007-11-18 22:10:10 +00:00
..
alpha
arm + first additions for the arm eabi 2007-11-07 20:48:32 +00:00
html
i386 * make call by value stdcall for records and arrays delphi compatible 2007-11-18 12:53:55 +00:00
ia64
m68k * removed a_call_reg hack, not needed after peter's latest fix 2007-11-04 15:27:31 +00:00
mips + default code now preserves mm registers 2007-10-27 12:02:28 +00:00
msg * removed garbage at the end 2007-11-11 21:26:44 +00:00
powerpc + default code now preserves mm registers 2007-10-27 12:02:28 +00:00
powerpc64 + default code now preserves mm registers 2007-10-27 12:02:28 +00:00
ppcgen * handle case ranges properly for unsigned types with a non-zero base, resolves #10009 2007-10-28 17:06:02 +00:00
sparc * fixed a_load_reg_ref: the store size has to depend on the tosize, 2007-11-01 13:31:23 +00:00
systems * use -x instead of -s for stripping executables on darwin (-s worked fine on 10.0, 2007-11-11 19:43:41 +00:00
utils * regenerated for darwin/x86_64 2007-11-10 18:37:19 +00:00
vis
x86 + darwin/x86_64 gprof support 2007-11-14 20:47:55 +00:00
x86_64 * added missing size suffixes for several sse2 opcodes 2007-11-10 19:57:01 +00:00
aasmbase.pas * new tf_smartlink_library flag 2007-10-01 16:55:08 +00:00
aasmdata.pas + darwin/x86_64 support 2007-11-10 18:33:09 +00:00
aasmsym.pas
aasmtai.pas * new tf_smartlink_library flag 2007-10-01 16:55:08 +00:00
aggas.pas + made m68k to compile system unit again 2007-10-31 22:33:00 +00:00
aopt.pas
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas
assemble.pas * debuginfo initialized per unit 2007-10-23 18:19:17 +00:00
browcol.pas * Fix browcol. 2007-06-14 08:33:19 +00:00
bsdcompile
catch.pas
cclasses.pas * optimized TLinkedList.clear so it can use regvars for everything in 2007-09-02 16:16:25 +00:00
cfidwarf.pas
cfileutl.pas * replace : with ; in AddPath 2007-11-08 08:24:07 +00:00
cg64f32.pas * Rework the constexprint to allow operations from low(int64) to high(qword). 2007-06-13 07:41:18 +00:00
cgbase.pas * fixed sparc compilation after addr_lo/hi changes 2007-07-20 12:30:16 +00:00
cgobj.pas * remove duplicate temp allocation for register saving 2007-11-18 22:10:10 +00:00
cgutils.pas * store character constants converted to shortstrings unaligned 2007-11-03 16:07:18 +00:00
charset.pas
cmsgs.pas - removed several ;; 2007-05-28 15:59:17 +00:00
comphook.pas + basic parsing of package files 2007-11-01 23:20:28 +00:00
compiler.pas * debuginfo initialized per unit 2007-10-23 18:19:17 +00:00
compinnr.inc + support for ISO Extended Pascal ReadStr() and WriteStr() routines 2007-05-14 17:34:01 +00:00
comprsrc.pas * search preprocessor binary and add it as command line parameter for windres, so that the cpp doesn't need to be on the path 2007-09-28 19:53:19 +00:00
constexp.pas * revert r8118 2007-07-22 19:59:00 +00:00
COPYING
cp437.pas
cp850.pas
cp866.pas * added missing "reserved" field to new code page files to fix warnings 2007-05-31 15:07:48 +00:00
cp1251.pas - removed some unused variables 2007-07-17 13:57:15 +00:00
cp8859_1.pas
cp8859_5.pas * added missing "reserved" field to new code page files to fix warnings 2007-05-31 15:07:48 +00:00
crefs.pas * Rework the constexprint to allow operations from low(int64) to high(qword). 2007-06-13 07:41:18 +00:00
cresstr.pas * fixed and enabled smartlinking on Darwin by adding more .reference 2007-09-28 22:48:41 +00:00
cstreams.pas * fixed bootstrapping with 2.0.4 2007-07-18 12:15:55 +00:00
cutils.pas * swapendian for 2.0.x 2007-07-22 16:13:43 +00:00
dbgbase.pas * debuginfo initialized per unit 2007-10-23 18:19:17 +00:00
dbgdwarf.pas * fix relative path writing 2007-10-23 17:38:54 +00:00
dbgstabs.pas * restored outputting the stabs for local variables and parameters 2007-10-21 21:19:48 +00:00
defcmp.pas * give ord->formaldef again a higher precedence than ord->floatdef 2007-11-02 11:17:11 +00:00
defutil.pas + support for extra packing of sets whose lower element number 2007-09-16 20:04:45 +00:00
export.pas
finput.pas * Rework the constexprint to allow operations from low(int64) to high(qword). 2007-06-13 07:41:18 +00:00
fmodule.pas * Fixed: import Address Table should contain the same data as Import Lookup Table. 2007-11-02 23:07:15 +00:00
fpccrc.pas
fpcdefs.inc * give a build-time error when trying to cross-compile the compiler from 2007-09-27 13:22:51 +00:00
fppu.pas * look in main source dir instead of loaded_from unit dirs. The loaded_from dir is normally 2007-10-16 20:55:24 +00:00
gendef.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
globals.pas + add -XR switch for target root file system with libs (also used for C lib type detection) 2007-09-30 15:00:54 +00:00
globtype.pas * remove duplicate temp allocation for register saving 2007-11-18 22:10:10 +00:00
htypechk.pas * give ord->formaldef again a higher precedence than ord->floatdef 2007-11-02 11:17:11 +00:00
impdef.pas
import.pas
link.pas * continued to play around with package support 2007-11-02 22:26:43 +00:00
Makefile * regenerated for darwin/x86_64 2007-11-10 18:37:19 +00:00
Makefile.fpc * Fixed cross CPU cycle after changes in rev. 8911. 2007-10-31 22:44:25 +00:00
MPWMake
msgidx.inc Added symbian target to the compiler messages 2007-11-07 19:42:55 +00:00
msgtxt.inc Added symbian target to the compiler messages 2007-11-07 19:42:55 +00:00
nadd.pas * fixed comparisons of orddefs with fourcharcodes in macpas mode + test 2007-10-31 15:11:13 +00:00
nbas.pas * safeguard the nf_block_with_exit flag when simplifying blockn and 2007-11-04 18:33:07 +00:00
ncal.pas * do not inline functions/procedures called with things like "nil^" 2007-11-18 14:29:19 +00:00
ncgadd.pas * remove registers{int/mmx/fpu} from firstpass 2007-09-26 21:12:01 +00:00
ncgbas.pas * no longer remove AsmBlockStart and AsmBlockEnd markers from 2007-09-22 19:01:44 +00:00
ncgcal.pas * fix non-x86 compile after r8558 2007-09-18 22:16:28 +00:00
ncgcnv.pas + support for widestring manager based widechar conversions 2007-08-12 20:01:08 +00:00
ncgcon.pas * fixed and enabled smartlinking on Darwin by adding more .reference 2007-09-28 22:48:41 +00:00
ncgflw.pas * write also asmblocklabel for a connected labelsym 2007-07-23 21:01:32 +00:00
ncginl.pas + support for extra packing of sets whose lower element number 2007-09-16 20:04:45 +00:00
ncgld.pas * store character constants converted to shortstrings unaligned 2007-11-03 16:07:18 +00:00
ncgmat.pas * Rework the constexprint to allow operations from low(int64) to high(qword). 2007-06-13 07:41:18 +00:00
ncgmem.pas * don't range pointers converted to arrays, resolves #8191 2007-10-21 19:05:06 +00:00
ncgopt.pas * remove registers{int/mmx/fpu} from firstpass 2007-09-26 21:12:01 +00:00
ncgrtti.pas * write rtti correct for currency being emulated by int64 2007-10-20 17:42:53 +00:00
ncgset.pas * handle case ranges properly for unsigned types with a non-zero base, resolves #10009 2007-10-28 17:06:02 +00:00
ncgutil.pas + default code now preserves mm registers 2007-10-27 12:02:28 +00:00
ncnv.pas * Improved warning "Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.": 2007-11-16 13:52:19 +00:00
ncon.pas * remove registers{int/mmx/fpu} from firstpass 2007-09-26 21:12:01 +00:00
nflw.pas * error message when a goto label is optimized away 2007-10-17 21:52:25 +00:00
ninl.pas * prefer write({short,ansi,wide}string) over write(chararray) for 2007-11-18 09:56:25 +00:00
nld.pas * Improved warning "Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.": 2007-11-16 13:52:19 +00:00
nmat.pas * remove registers{int/mmx/fpu} from firstpass 2007-09-26 21:12:01 +00:00
nmem.pas * remove registers{int/mmx/fpu} from firstpass 2007-09-26 21:12:01 +00:00
nobj.pas * don't allow starting new virtual trees in TP-style objects + test 2007-09-09 14:58:55 +00:00
node.pas * remove firstpasscount 2007-09-26 21:13:32 +00:00
nopt.pas * remove registers{int/mmx/fpu} from firstpass 2007-09-26 21:12:01 +00:00
nset.pas * added missing tcasenode.derefnode override to process all the 2007-11-14 19:40:28 +00:00
nstate.pas
nutils.pas * fixed calculation of fpu resources 2007-10-13 19:39:25 +00:00
ogbase.pas * idata must be aligned on 4 bytes to prevent a corrupt 2007-10-02 18:41:47 +00:00
ogcoff.pas * Fixed: import Address Table should contain the same data as Import Lookup Table. 2007-11-02 23:07:15 +00:00
ogelf.pas * new tf_smartlink_library flag 2007-10-01 16:55:08 +00:00
oglx.pas
ogmap.pas * Rework the constexprint to allow operations from low(int64) to high(qword). 2007-06-13 07:41:18 +00:00
optbase.pas + first basically working (not all node types yet) dfa implementation determining life information 2007-05-06 21:33:39 +00:00
optcse.pas * fixed some crashes 2007-09-20 22:28:54 +00:00
optdfa.pas * fixed dfa for raise nodes 2007-07-23 20:22:36 +00:00
options.pas * define for armel fixed 2007-11-08 21:03:46 +00:00
opttail.pas * error message when a goto label is optimized away 2007-10-17 21:52:25 +00:00
optunrol.pas * invalid typecast 2007-09-17 19:40:36 +00:00
optutils.pas + give more sophisticated warnings about uninitalized variables when life info is available 2007-06-03 17:35:48 +00:00
owar.pas
owbase.pas * do not use F field to get TObjectReader FileName as it is freed inside openfile method 2007-05-03 23:55:55 +00:00
parabase.pas
paramgr.pas
parser.pas + basic parsing of package files 2007-11-01 23:20:28 +00:00
pass_1.pas + support for simplifying simple inline functions down to a single 2007-03-13 22:27:55 +00:00
pass_2.pas * indenting of node names 2007-09-09 14:03:31 +00:00
pbase.pas * improved generics 2007-10-18 00:24:05 +00:00
pdecl.pas - removed some unused variables 2007-07-17 13:57:15 +00:00
pdecobj.pas * allow types in interfaces 2007-10-18 07:09:36 +00:00
pdecsub.pas * improved generics 2007-10-18 00:24:05 +00:00
pdecvar.pas * Fixed: import Address Table should contain the same data as Import Lookup Table. 2007-11-02 23:07:15 +00:00
pexports.pas * Rework the constexprint to allow operations from low(int64) to high(qword). 2007-06-13 07:41:18 +00:00
pexpr.pas + disp. var. property setting, resolves #10133 and #9134 2007-11-11 14:14:05 +00:00
pinline.pas * remove registers{int/mmx/fpu} from firstpass 2007-09-26 21:12:01 +00:00
pmodules.pas * Fixed compilation. 2007-11-03 09:51:45 +00:00
pp.lpi
pp.pas
ppc68k.lpi
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi
ppcppc.lpi + powerpc lazarus project file 2007-03-03 14:53:15 +00:00
ppcsparc.lpi + sparc lazarus project file 2007-04-05 10:22:24 +00:00
ppheap.pas
ppu.pas + write aliasnames to ppu as well 2007-11-02 20:50:01 +00:00
procinfo.pas + PIC support for darwin/ppc32 (-Cg works now, no regressions in test 2007-09-26 16:41:32 +00:00
pstatmnt.pas * ignore register list in pure assembler routines, resolves #9335 2007-10-28 20:41:19 +00:00
psub.pas * fixed disabling of inlining procedures/functions with nested 2007-11-13 18:12:25 +00:00
psystem.pas - removed tai_file/tai_loc, no longer needed 2007-07-04 08:14:48 +00:00
ptconst.pas * fixed bug in typed constant record parsing with variant records 2007-10-26 18:22:30 +00:00
ptype.pas * improved generics 2007-10-18 00:24:05 +00:00
raatt.pas + .fini section support 2007-07-28 08:40:10 +00:00
rabase.pas
rasm.pas
rautils.pas * Improved escape analysis so the improved tretopt no longer fails. 2007-09-05 13:29:22 +00:00
README
regvars.pas
rgbase.pas
rgobj.pas * check register type also for registers in references so we are 2007-11-04 14:24:36 +00:00
scandir.pas + support for specifying the minimal precision for floating point 2007-09-01 19:38:27 +00:00
scanner.pas * continued to play around with package support 2007-11-02 22:26:43 +00:00
script.pas * fixed handling of paths/files with spaces in their name in link.res 2007-07-25 16:25:14 +00:00
switches.pas + forbid usage of $E on targets supporting no fpu emulation 2007-06-10 17:03:26 +00:00
symbase.pas
symconst.pas * give ord->formaldef again a higher precedence than ord->floatdef 2007-11-02 11:17:11 +00:00
symdef.pas + write aliasnames to ppu as well 2007-11-02 20:50:01 +00:00
symnot.pas
symsym.pas * fixed tests/cg/opt/tretopt, and also in more cases 2007-09-02 21:27:37 +00:00
symtable.pas * added missing assignment check when searching for a symbol in a class, fixing bug #9673 2007-09-20 20:35:35 +00:00
symtype.pas * Convert guid load/save to endian safe code. 2007-06-30 21:45:20 +00:00
symutil.pas * Rework the constexprint to allow operations from low(int64) to high(qword). 2007-06-13 07:41:18 +00:00
systems.pas + darwin/x86_64 support 2007-11-10 18:33:09 +00:00
tgobj.pas * for ARM CPU records must be aligned in stack depending of record size to prevent misaligned error when the record is passed as parameter in registers. It fixes tcalext* tests for ARM. 2007-06-20 20:31:06 +00:00
tokens.pas
verbose.pas * Rework the constexprint to allow operations from low(int64) to high(qword). 2007-06-13 07:41:18 +00:00
version.pas * Merged 2.3 branch changes: 2007-03-04 20:16:57 +00:00
widestr.pas * make code page name parsing case insensitive (mantis #8930) 2007-09-22 20:54:49 +00:00

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
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
  cpu64bit            The target is a 64-bit processor
  -----------------------------------------------------------------

  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