fpc/compiler
Jonas Maebe 359c19ee9e - removed ppc601 as ppc32 cpu target
+ added ppc740 (g3), ppc7400 (G4) and ppc970 (G5) as ppc32 cpu
    targets
  * initialise optimizecputype by default to ppc7400 for ppc32 and to
    ppc970 for ppc64
  * merged ppc32/ppc64 overflow checking code and use the ppc64 one
    in case cputype or optimizecputype >= ppc970, because one of
    the instructions used in the ppc32 version no longer exists on the
    ppc970 (although it's emulated in the kernel on at least Mac OS X)
  * moved some other support routines and constants to ppcgen which
    were needed for the overflow checking (were identical for ppc32 and
    ppc64) 

git-svn-id: trunk@6323 -
2007-02-03 19:32:44 +00:00
..
alpha * moved (unfinished) routines related to writing taicpu's to ppu files 2007-01-02 18:28:05 +00:00
arm * stop conditional optimization at mov pc,... 2007-02-03 17:40:32 +00:00
html
i386 * handle stack parameters like delphi when using register calling conventions, resolves #8199 2007-01-26 17:38:46 +00:00
ia64
m68k * a_loadfpu_* gets two size parameters: fromsize and tosize 2007-01-12 18:33:51 +00:00
mips
msg + new warning for assembler that does not support debug information 2007-01-26 05:04:07 +00:00
powerpc - removed ppc601 as ppc32 cpu target 2007-02-03 19:32:44 +00:00
powerpc64 - removed ppc601 as ppc32 cpu target 2007-02-03 19:32:44 +00:00
ppcgen - removed ppc601 as ppc32 cpu target 2007-02-03 19:32:44 +00:00
sparc + support for VMTOFFSET in assembler readers to get VMT offset of virtual 2007-01-24 18:26:23 +00:00
systems + new tf_dwarf_relative_addresses target flag for platforms where all 2007-02-02 13:49:26 +00:00
utils * .NOTPARALLEL target so cycle works with make -j for targets whose 2007-01-26 22:46:44 +00:00
vis
x86 * fixed pushing of words in intel assembler (indirectly related to 2007-01-30 21:52:11 +00:00
x86_64 * def.size in [1,2,4,8] goes wrong if def.size>255, fixed, resolves #8232 2007-01-28 18:06:51 +00:00
aasmbase.pas * .init section support 2007-01-07 10:03:52 +00:00
aasmdata.pas * fixed memory leaks in compiler. 2006-11-14 09:32:58 +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 * fixed previous commit for -gv 2007-01-29 15:35:12 +00:00
aggas.pas * proper section names for sec_debug_line, sec_debug_info and 2007-02-01 15:46:33 +00:00
aopt.pas * arm cond. instruction support 2006-11-14 22:37:22 +00:00
aoptbase.pas * remove tdictionary and tindexarray 2006-11-03 00:30:30 +00:00
aoptcs.pas
aoptda.pas * remove tdictionary and tindexarray 2006-11-03 00:30:30 +00:00
aoptobj.pas * fixed some warnings about hidden constructors 2007-01-02 14:18:12 +00:00
assemble.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
browcol.pas * reinstate code dealing with browser switches 2007-01-23 05:53:30 +00:00
bsdcompile
catch.pas macos: added a fake sysutils for use by compiler, and fixed some tests 2006-09-03 22:30:37 +00:00
cclasses.pas * explicitly use shortstring for TFPHashList 2007-02-02 18:58:29 +00:00
cfidwarf.pas
cfileutils.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
cg64f32.pas * cleanup deleting of defs 2007-01-11 20:46:57 +00:00
cgbase.pas * refactor gen_alloc_symtable so it depends on varsym type and not 2006-11-05 21:53:40 +00:00
cgobj.pas * arm compiler can handled misaligned references 2007-02-02 22:42:27 +00:00
cgutils.pas
charset.pas
cmsgs.pas * Remove dos,strings units, use SysUtils instead 2006-10-30 23:29:35 +00:00
comphook.pas + added -vs for time stamping 2007-01-24 20:32:06 +00:00
compiler.pas * set starttime earlier so time stamps don't get messed up 2007-01-27 13:45:49 +00:00
compinnr.inc + support for bitsizeof() function 2006-09-09 18:57:49 +00:00
comprsrc.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
COPYING
cp437.pas fix compilation for {$T+} linux/win 2006-10-04 20:43:55 +00:00
cp850.pas fix compilation for {$T+} linux/win 2006-10-04 20:43:55 +00:00
cp8859_1.pas fix compilation for {$T+} linux/win 2006-10-04 20:43:55 +00:00
crefs.pas + new unit to handle references 2007-01-23 05:40:26 +00:00
cresstr.pas + Enable resourcestring in all modes 2006-12-18 21:25:47 +00:00
cstreams.pas
cutils.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
dbgbase.pas * problem with virtual methods and interfaces fixed, fixes #8158 2007-01-21 15:57:16 +00:00
dbgdwarf.pas * mark whether or not procsyms are global (DW_AT_external) 2007-02-02 23:18:15 +00:00
dbgstabs.pas * fixed debugging info for local type definitions 2007-02-01 17:31:47 +00:00
defcmp.pas * better hint about abstract methods (fixes 5098) 2007-01-03 19:14:31 +00:00
defutil.pas * fixed include/exclude for big endian after r6172 2007-01-24 21:53:05 +00:00
export.pas * Remove dos,strings units, use SysUtils instead 2006-10-30 23:29:35 +00:00
finput.pas * fixed -o for sharedlibrary 2007-01-15 17:21:38 +00:00
fmodule.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
fpccrc.pas
fpcdefs.inc * varsets shouldn't be enabled in the compiler currently 2007-01-24 20:31:30 +00:00
fppu.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +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 - removed ppc601 as ppc32 cpu target 2007-02-03 19:32:44 +00:00
globtype.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
htypechk.pas * proper initialised/used warnings for variables used 2007-01-17 12:04:53 +00:00
impdef.pas + workaround for non-working dircache on morphos/amiga 2007-01-14 21:32:58 +00:00
import.pas * refactor import library generation 2006-09-03 19:22:31 +00:00
link.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
make_old.cmd
Makefile * .NOTPARALLEL target so cycle works with make -j for targets whose 2007-01-26 22:46:44 +00:00
Makefile.fpc * .NOTPARALLEL target so cycle works with make -j for targets whose 2007-01-26 22:46:44 +00:00
mdppc386.bat
mppc68k.bat
mppc386.bat
mppcsparc
MPWMake macos: added a fake sysutils for use by compiler, and fixed some tests 2006-09-03 22:30:37 +00:00
msgidx.inc * regenerated message text files with new stabs disabling message 2007-01-26 12:44:05 +00:00
msgtxt.inc * regenerated message text files with new stabs disabling message 2007-01-26 12:44:05 +00:00
nadd.pas + Patch by Thorsten Engler to optimize string comparisons for = and <> cases. (Mantis #8231) 2007-01-28 10:58:52 +00:00
nbas.pas * avoid memory leak for copy of withnode in tempnodes 2007-01-19 05:12:08 +00:00
ncal.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
ncgadd.pas * remove invalid aword typecast 2007-01-22 19:40:31 +00:00
ncgbas.pas * remove tdictionary and tindexarray 2006-11-03 00:30:30 +00:00
ncgcal.pas * a_loadfpu_* gets two size parameters: fromsize and tosize 2007-01-12 18:33:51 +00:00
ncgcnv.pas * fixed x86 vector mmloads and use scalar loads in ncgcnv 2007-01-14 13:36:26 +00:00
ncgcon.pas * fixed writing of double constants on WinCE 2006-11-17 22:17:54 +00:00
ncgflw.pas * remove tdictionary and tindexarray 2006-11-03 00:30:30 +00:00
ncginl.pas * fixed include/exclude for big endian after r6172 2007-01-24 21:53:05 +00:00
ncgld.pas * a_loadfpu_* gets two size parameters: fromsize and tosize 2007-01-12 18:33:51 +00:00
ncgmat.pas * a_loadfpu_* gets two size parameters: fromsize and tosize 2007-01-12 18:33:51 +00:00
ncgmem.pas * copy unique return value to address register on m68k 2006-12-07 20:10:00 +00:00
ncgopt.pas * remove ttype 2006-10-29 22:19:39 +00:00
ncgrtti.pas + support for sets with size 1 and 2 2007-01-24 20:06:56 +00:00
ncgset.pas * renamed nf_swaped to nf_swapped 2007-01-05 12:47:22 +00:00
ncgutil.pas * patch from Thorsten Engler submitted in #8235 2007-01-30 19:53:42 +00:00
ncnv.pas + support for sets with size 1 and 2 2007-01-24 20:06:56 +00:00
ncon.pas * added support for very big/small currency constants for non x86 CPUs. 2007-01-13 12:12:20 +00:00
nflw.pas * fixed some warnings about hidden constructors 2007-01-02 14:18:12 +00:00
ninl.pas * don't call afterconstruction/beforedestruction in case an exception 2007-01-26 17:38:53 +00:00
nld.pas * Use IncRefCountBy 2007-01-23 05:49:05 +00:00
nmat.pas * do not convert input of unaryminusnode to sint if the original is currency; fixes tfloattostr for 64 bit platforms which use int64 as currency type 2007-01-21 22:09:32 +00:00
nmem.pas * proper initialised/used warnings for variables used 2007-01-17 12:04:53 +00:00
nobj.pas * Fixed crash bug with IMPLEMENTS due to the changes earlier today. (No longer dereferences VtblImplIntf when we should not) 2007-01-26 23:50:09 +00:00
node.pas * renamed nf_swaped to nf_swapped 2007-01-05 12:47:22 +00:00
nopt.pas * fixed some warnings about hidden constructors 2007-01-02 14:18:12 +00:00
nset.pas * fixed some warnings about hidden constructors 2007-01-02 14:18:12 +00:00
nstate.pas
nutils.pas * niln has a compelxity of 0 (so the inlining code doesn't try to take 2006-12-29 01:11:41 +00:00
ogbase.pas * fix IE after duplicate asm symbol 2007-01-15 17:45:01 +00:00
ogcoff.pas * .init section support 2007-01-07 10:03:52 +00:00
ogelf.pas * .init section support 2007-01-07 10:03:52 +00:00
oglx.pas * remove tdictionary and tindexarray 2006-11-03 00:30:30 +00:00
ogmap.pas * Remove dos,strings units, use SysUtils instead 2006-10-30 23:29:35 +00:00
optcse.pas * remove ttype 2006-10-29 22:19:39 +00:00
options.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
opttail.pas * don't do tail recursion optimization on types requiring init/final code 2007-01-17 22:02:42 +00:00
optunrol.pas * settings refactored 2006-10-30 18:02:58 +00:00
owar.pas * Remove dos,strings units, use SysUtils instead 2006-10-30 23:29:35 +00:00
owbase.pas * Remove dos,strings units, use SysUtils instead 2006-10-30 23:29:35 +00:00
parabase.pas
paramgr.pas * remove tdictionary and tindexarray 2006-11-03 00:30:30 +00:00
parser.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
pass_1.pas * germanism removed (aktfilepos -> current_filepos) 2006-10-30 22:37:31 +00:00
pass_2.pas * fixed missing lineinfo after removing inlining_procedure (missed a "not" in 2007-01-30 15:30:47 +00:00
pbase.pas * kicked ignore_equal, usage was wrong anyways 2006-12-31 00:48:52 +00:00
pdecl.pas * fixed #8156 2007-01-21 16:15:19 +00:00
pdecobj.pas * write vmt always according to the order of definitions 2007-01-04 22:39:12 +00:00
pdecsub.pas * correct debug info for parentfp hidden parameter, 2007-01-15 05:13:53 +00:00
pdecvar.pas * Renamed IIOffset to FieldOffset to avoid confusion with IOffset (TImplementedInterface) 2007-01-26 23:03:40 +00:00
pexports.pas * removed typed const, it is now handled by staticvarsym 2006-11-08 21:04:22 +00:00
pexpr.pas * removed no longer used allow_only_static global variable 2007-01-29 14:49:28 +00:00
pinline.pas * show name of procedure/function called with too few parameters 2006-12-01 20:15:57 +00:00
pmodules.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
pp.lpi * more improvements 2006-11-12 22:32:26 +00:00
pp.pas * move exception mask initialization to procedure compile 2007-01-07 12:24:39 +00:00
ppc68k.lpi * small m68k-linux fixes 2006-11-19 21:51:20 +00:00
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi * initial copy from i386 2006-11-15 20:33:43 +00:00
ppheap.pas * germanism removed (aktfilepos -> current_filepos) 2006-10-30 22:37:31 +00:00
ppu.pas * don't call afterconstruction/beforedestruction in case an exception 2007-01-26 17:38:53 +00:00
procinfo.pas * settings refactored 2006-10-30 18:02:58 +00:00
pstatmnt.pas * fixed with-support for classrefdefs (mantis 8150), with thanks to 2007-01-20 20:04:54 +00:00
psub.pas * removed no longer used allow_only_static global variable 2007-01-29 14:49:28 +00:00
psystem.pas * don't call afterconstruction/beforedestruction in case an exception 2007-01-26 17:38:53 +00:00
ptconst.pas * added support for very big/small currency constants for non x86 CPUs. 2007-01-13 12:12:20 +00:00
ptype.pas * cleanup deleting of defs 2007-01-11 20:46:57 +00:00
raatt.pas + support for VMTOFFSET in assembler readers to get VMT offset of virtual 2007-01-24 18:26:23 +00:00
rabase.pas
rasm.pas * replaced tdictionary with tfphashlist 2006-11-01 14:26:50 +00:00
rautils.pas + support for VMTOFFSET in assembler readers to get VMT offset of virtual 2007-01-24 18:26:23 +00:00
README
regvars.pas * remove tdictionary and tindexarray 2006-11-03 00:30:30 +00:00
rgbase.pas
rgobj.pas * fix IE with -sr and EXTDEBUG 2006-11-07 22:43:34 +00:00
scandir.pas * compiler part of first Nintendo DS port 2006-12-14 17:32:16 +00:00
scanner.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
script.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
switches.pas * don't give a warning for {$u-} (means "Pentium-safe fdiv off", is only 2007-01-24 19:49:16 +00:00
symbase.pas * cleanup deleting of defs 2007-01-11 20:46:57 +00:00
symconst.pas * fixed webtbf/tw3631 2007-01-16 21:15:21 +00:00
symdef.pas * Renamed IIOffset to FieldOffset to avoid confusion with IOffset (TImplementedInterface) 2007-01-26 23:03:40 +00:00
symnot.pas
symsym.pas * fixed debug info generation for static symbols + IE in case it cannot 2007-01-25 17:07:26 +00:00
symtable.pas * fixed tbf/tb0063 2007-01-30 15:53:52 +00:00
symtype.pas + added code for reference list creation for tsym 2007-01-23 05:46:29 +00:00
symutil.pas * moved rtti to ncgrtti 2006-11-04 10:43:27 +00:00
systems.pas + new tf_dwarf_relative_addresses target flag for platforms where all 2007-02-02 13:49:26 +00:00
tgobj.pas * changed ref parameter of gettemp/gettemptyped from var to out to fix 2007-01-12 10:29:14 +00:00
tokens.pas + Enable resourcestring in all modes 2006-12-18 21:25:47 +00:00
verbose.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
version.pas
widestr.pas * settings refactored 2006-10-30 18:02:58 +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