fpc/compiler
Jonas Maebe a23fa2e81e * moved (unfinished) routines related to writing taicpu's to ppu files
from x86/aasmcpu to aasmtai and (new) aasmsym, so that when they're
    finished they're available for all targets
  * added dummy implementation of tai_cpu_abstract.pass1 and pass2 so there
    are no more hundreds of warnings on non-x86 about constructing taicpu
    instances with abstract methods

git-svn-id: trunk@5787 -
2007-01-02 18:28:05 +00:00
..
alpha * moved (unfinished) routines related to writing taicpu's to ppu files 2007-01-02 18:28:05 +00:00
arm * moved (unfinished) routines related to writing taicpu's to ppu files 2007-01-02 18:28:05 +00:00
html
i386 * fixed assembling of movd with 64 bit registers 2006-11-25 20:32:32 +00:00
ia64
m68k * moved (unfinished) routines related to writing taicpu's to ppu files 2007-01-02 18:28:05 +00:00
mips
msg * only non generic types can be used when specializing generics, fixes 7735 2006-12-30 21:51:24 +00:00
powerpc * fixed memory leaks in ppc peephole optimizer 2006-12-11 15:53:30 +00:00
powerpc64 * better fix for previous revision 2006-11-30 20:55:32 +00:00
ppcgen * moved (unfinished) routines related to writing taicpu's to ppu files 2007-01-02 18:28:05 +00:00
sparc * moved (unfinished) routines related to writing taicpu's to ppu files 2007-01-02 18:28:05 +00:00
systems * fixed i386-wince flags. 2006-12-29 20:50:43 +00:00
utils * updated for new compiler switches (mantis 7063) 2006-12-27 15:09:13 +00:00
vis
x86 * moved (unfinished) routines related to writing taicpu's to ppu files 2007-01-02 18:28:05 +00:00
x86_64 * register saving on win64 fixed 2007-01-02 14:34:03 +00:00
aasmbase.pas * AsmSymbolDict changed to FPHashObjectList 2006-11-01 00:22:13 +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 * moved (unfinished) routines related to writing taicpu's to ppu files 2007-01-02 18:28:05 +00:00
aggas.pas * disable generation of smartlinkable code for Darwin for now since 2006-12-26 17:07:28 +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 * enable pipe-assembling again for solaris 2006-11-12 21:43:58 +00:00
browcol.pas * removed typed const, it is now handled by staticvarsym 2006-11-08 21:04:22 +00:00
bsdcompile
catch.pas
cclasses.pas fix TFPList.QuickSort duplicate in compiler cclasses (rtl is also broken) 2006-12-02 08:03:21 +00:00
cfidwarf.pas
cfileutils.pas * findclose must always be called (also when findfirst didn't find 2006-12-11 15:55:21 +00:00
cg64f32.pas * remove tdictionary and tindexarray 2006-11-03 00:30:30 +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 * fixed typo in comments 2006-12-01 19:40:31 +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 * use fileage for retrieving file timestamps 2006-10-31 09:07:23 +00:00
compiler.pas * compiler part of first Nintendo DS port 2006-12-14 17:32:16 +00:00
compinnr.inc
comprsrc.pas * extra parameter for file searching functions 2006-10-31 10:56:58 +00:00
COPYING
cp437.pas
cp850.pas
cp8859_1.pas
cresstr.pas + Enable resourcestring in all modes 2006-12-18 21:25:47 +00:00
cstreams.pas
cutils.pas * replace can now also insert strings > 255 chars in ansistrings 2006-11-11 10:23:27 +00:00
dbgbase.pas * refactor procsym procdef list 2006-11-03 18:44:46 +00:00
dbgdwarf.pas * fixed range check errors 2006-11-20 13:15:30 +00:00
dbgstabs.pas * section "fpc" was renamed to ".fpc". 2006-11-10 10:33:41 +00:00
defcmp.pas * fixed mantis 6631, 7322 and 7989: check parameters and return 2006-12-22 19:50:52 +00:00
defutil.pas * getrange parameters from "var" to "out" 2007-01-02 18:16:56 +00:00
export.pas * Remove dos,strings units, use SysUtils instead 2006-10-30 23:29:35 +00:00
finput.pas * remove tdictionary and tindexarray 2006-11-03 00:30:30 +00:00
fmodule.pas * ignore program module when resolving unit names during ppu load 2006-12-30 17:18:28 +00:00
fpccrc.pas
fpcdefs.inc * varsets disabled completely for now 2006-11-14 21:43:29 +00:00
fppu.pas * remove tdictionary and tindexarray 2006-11-03 00:30:30 +00:00
gendef.pas * Remove dos,strings units, use SysUtils instead 2006-10-30 23:29:35 +00:00
globals.pas + start of embedded rtl 2006-12-17 18:40:36 +00:00
globtype.pas + start of embedded rtl 2006-12-17 18:40:36 +00:00
htypechk.pas * committed wrong version in previous revision 2006-12-28 17:02:24 +00:00
impdef.pas * Remove dos,strings units, use SysUtils instead 2006-10-30 23:29:35 +00:00
import.pas
link.pas * fix searching of (g)ar for the arfinishcmd 2006-11-13 22:39:00 +00:00
make_old.cmd
Makefile
Makefile.fpc
mdppc386.bat
mppc68k.bat
mppc386.bat
mppcsparc
MPWMake
msgidx.inc * only non generic types can be used when specializing generics, fixes 7735 2006-12-30 21:51:24 +00:00
msgtxt.inc * only non generic types can be used when specializing generics, fixes 7735 2006-12-30 21:51:24 +00:00
nadd.pas * taddnode.first_addstring, avoid memory leak if 2006-12-07 13:03:51 +00:00
nbas.pas * varset support fixed 2006-11-08 22:48:44 +00:00
ncal.pas + handle variant dispatching 2006-12-31 17:50:29 +00:00
ncgadd.pas * varset support fixed 2006-11-08 22:48:44 +00:00
ncgbas.pas * remove tdictionary and tindexarray 2006-11-03 00:30:30 +00:00
ncgcal.pas * fixed assembling of movd with 64 bit registers 2006-11-25 20:32:32 +00:00
ncgcnv.pas * registers of references aren't reused so we can safe a mov 2006-11-16 22:26:03 +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 * support inc(pointer) in TP mode with range/overflow checking on as well 2006-12-15 13:02:00 +00:00
ncgld.pas * removed typed const, it is now handled by staticvarsym 2006-11-08 21:04:22 +00:00
ncgmat.pas + fixed suspected typo 2006-12-25 15:26:55 +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 * refactor tclassheader in tvmtbuilder and tvmtwriter 2006-11-13 22:03:17 +00:00
ncgset.pas * remove tdictionary and tindexarray 2006-11-03 00:30:30 +00:00
ncgutil.pas * x86_64-win64 returns structured types up to 8 bytes in rax 2006-12-02 15:36:32 +00:00
ncnv.pas * ttypeconvnode.simplify, avoid a memory leak 2006-12-07 13:06:31 +00:00
ncon.pas - cleanup, fixing of uninitialized variables, missing return values and unused variables 2006-11-26 21:54:23 +00:00
nflw.pas * fixed some warnings about hidden constructors 2007-01-02 14:18:12 +00:00
ninl.pas * fixed compilation of tbs/tb0460.pp for targets where currency is stored as ordinal. 2006-12-22 00:48:17 +00:00
nld.pas * removed typed const, it is now handled by staticvarsym 2006-11-08 21:04:22 +00:00
nmat.pas * implicitly call procvars in tp/delphi modes for divmodn, shlshrn 2006-12-27 14:29:23 +00:00
nmem.pas * removed typed const, it is now handled by staticvarsym 2006-11-08 21:04:22 +00:00
nobj.pas * give an error if the same method declaration is added twice to an 2006-12-26 18:12:56 +00:00
node.pas + ttertiarynode 2006-11-03 23:03:31 +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 * fixed memory leaks in compiler. 2006-11-14 09:32:58 +00:00
ogcoff.pas * enabled af_smartlink_sections for i386-wince. 2006-12-29 21:06:05 +00:00
ogelf.pas * Remove dos,strings units, use SysUtils instead 2006-10-30 23:29:35 +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 * fix previous patch for -g alone, 2006-12-24 01:27:26 +00:00
opttail.pas * fixed memory leaks in compiler. 2006-11-14 09:32:58 +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 * kicked ignore_equal, usage was wrong anyways 2006-12-31 00:48:52 +00:00
pass_1.pas * germanism removed (aktfilepos -> current_filepos) 2006-10-30 22:37:31 +00:00
pass_2.pas * refactor procsym procdef list 2006-11-03 18:44:46 +00:00
pbase.pas * kicked ignore_equal, usage was wrong anyways 2006-12-31 00:48:52 +00:00
pdecl.pas * kicked ignore_equal, usage was wrong anyways 2006-12-31 00:48:52 +00:00
pdecobj.pas * refactor tclassheader in tvmtbuilder and tvmtwriter 2006-11-13 22:03:17 +00:00
pdecsub.pas * fixed local check, fixes #7242 2006-12-30 23:47:21 +00:00
pdecvar.pas * kicked ignore_equal, usage was wrong anyways 2006-12-31 00:48:52 +00:00
pexports.pas * removed typed const, it is now handled by staticvarsym 2006-11-08 21:04:22 +00:00
pexpr.pas + parsing of type casts with nested types 2006-11-11 20:45:02 +00:00
pinline.pas * show name of procedure/function called with too few parameters 2006-12-01 20:15:57 +00:00
pmodules.pas Fixed lineinfo compilation with -gl 2006-12-26 19:27:45 +00:00
pp.lpi * more improvements 2006-11-12 22:32:26 +00:00
pp.pas * germanism removed (aktfilepos -> current_filepos) 2006-10-30 22:37:31 +00:00
ppc68k.lpi * small m68k-linux fixes 2006-11-19 21:51:20 +00:00
ppc.cfg
ppc.conf
ppc.dof
ppc.dpr
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 * fixed mantis 7975 and 7107 (ie 200311075 when working using somewhat 2006-12-21 21:03:47 +00:00
procinfo.pas * settings refactored 2006-10-30 18:02:58 +00:00
pstatmnt.pas * removed typed const, it is now handled by staticvarsym 2006-11-08 21:04:22 +00:00
psub.pas * temporarily turn off self and vmt checking after calling 2006-12-23 14:03:43 +00:00
psystem.pas * refactor tclassheader in tvmtbuilder and tvmtwriter 2006-11-13 22:03:17 +00:00
ptconst.pas * fixed error message for attempts to initialise typed const 2006-12-22 14:12:26 +00:00
ptype.pas * kicked ignore_equal, usage was wrong anyways 2006-12-31 00:48:52 +00:00
raatt.pas * Compiler directives {$...} are allowed in ARM inline assembler. It fixes tb0142.pp and tb0193.pp. 2006-12-21 20:48:18 +00:00
rabase.pas
rasm.pas * replaced tdictionary with tfphashlist 2006-11-01 14:26:50 +00:00
rautils.pas + added several warnings about use of references 2006-12-29 09:37:15 +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 * Compiler directives {$...} are allowed in ARM inline assembler. It fixes tb0142.pp and tb0193.pp. 2006-12-21 20:48:18 +00:00
script.pas + implement pascal inline asm start/halt code for linux/i386 2006-11-02 16:58:41 +00:00
switches.pas * remove tdictionary and tindexarray 2006-11-03 00:30:30 +00:00
symbase.pas * set vs_initialised for typed consts 2006-11-13 07:42:48 +00:00
symconst.pas * fixed overload choosing algorithm so it's Delphi-compatible + 2006-12-28 16:54:07 +00:00
symdef.pas * dispinterfaces are publishable as well 2007-01-01 18:30:53 +00:00
symnot.pas
symsym.pas * don't override varregable for tabstractvarsyms loaded from a ppu when 2006-12-04 14:16:43 +00:00
symtable.pas * fixed arithmetic overflow when loading the recorddef of large 2006-12-14 20:24:20 +00:00
symtype.pas * fixed bug where derefs with an index 65535 were not read correctly 2006-12-14 20:21:05 +00:00
symutil.pas * moved rtti to ncgrtti 2006-11-04 10:43:27 +00:00
systems.pas + start of embedded rtl 2006-12-17 18:40:36 +00:00
tgobj.pas * germanism removed (aktfilepos -> current_filepos) 2006-10-30 22:37:31 +00:00
tokens.pas + Enable resourcestring in all modes 2006-12-18 21:25:47 +00:00
verbose.pas * don't open error file twice but close it first if necessary 2006-11-12 16:00:01 +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