fpc/compiler
peter 8f21a5c0f6 * align interface offsets
git-svn-id: trunk@2506 -
2006-02-10 08:30:35 +00:00
..
alpha * new categories for vs_*: vs_declared, vs_initialised, vs_read, 2005-12-10 16:51:26 +00:00
arm * palmos patch from mazen 2006-02-02 07:12:43 +00:00
html
i386 * fixed web bug #4768 + test 2006-02-08 19:22:26 +00:00
ia64 * log and id tags removed 2005-05-21 09:42:41 +00:00
m68k + added ifndef NOTARGETAMIGA 2006-02-02 11:55:33 +00:00
mips *c <int64>:=-<longint> fixed (bug 4253) 2005-08-05 19:00:30 +00:00
msg + warn if a static variable is read but not assigned (tw4781*) 2006-02-07 21:23:02 +00:00
powerpc * compilation for arm target fixed 2006-02-02 17:26:18 +00:00
powerpc64 * fixed tlist overflow in some corner cases when fixing up jumps 2006-01-26 09:54:56 +00:00
sparc * fixed function result handling for procedure which are inlinable 2006-02-06 21:44:35 +00:00
systems * finalization sections in shared libraries under Darwin are now run 2006-02-07 14:29:58 +00:00
utils * from Ales Katona: use $fpcversion instead of fixed version number when generating config 2006-02-09 15:06:33 +00:00
vis * log and id tags removed 2005-05-21 09:42:41 +00:00
x86 * don't destroy edi when allocating the stack frame for win32 2006-01-23 10:54:48 +00:00
x86_64 * fixed interface wrappers in pic 2005-11-13 14:53:04 +00:00
aasmbase.pas + dwarf for procedures and local symbols 2006-01-28 21:26:37 +00:00
aasmtai.pas * finalization sections in shared libraries under Darwin are now run 2006-02-07 14:29:58 +00:00
aggas.pas * fixed open arrays with dwarf 2006-02-05 20:41:13 +00:00
aopt.pas + enabled postpeepholeopts phase 2005-10-12 19:47:21 +00:00
aoptbase.pas * cpu-specific overrides of optimizer methods now get called 2005-10-07 21:44:00 +00:00
aoptcs.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
aoptda.pas * support multiple asmlabel types, renamed getlabel to 2005-09-18 21:16:10 +00:00
aoptobj.pas * fixed refs bookkeeping of jump labels (fix from Florian in popt386) 2006-01-08 15:50:14 +00:00
assemble.pas * Add --32 or --64 to to ensure functionality of i386 compiler on x64_64 OSes. 2006-01-22 14:29:07 +00:00
browcol.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
browlog.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
bsdcompile
catch.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
cclasses.pas + Removed all compatibility defines from compiler 2005-06-09 21:14:22 +00:00
cg64f32.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
cgbase.pas * handling of address registers in references fixed 2006-02-01 22:45:14 +00:00
cgobj.pas + translate register variable locations, enables register variable debug info, with SSA it requires to be extended maintaining location list 2006-02-02 21:27:23 +00:00
cgutils.pas * fixed a lot of stuff for fpu/mm register variables 2005-06-04 21:23:15 +00:00
charset.pas * fixed crash with empty codepage 2005-06-07 12:52:01 +00:00
cmsgs.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
comphook.pas + -vb: writes compiler messages with full path instead of the file name only 2005-09-18 18:09:19 +00:00
compiler.pas * powerpc64 port from Thomas Schatzl 2005-09-25 17:19:44 +00:00
compinnr.inc + slice implemented 2005-10-15 16:48:27 +00:00
comprsrc.pas + wince resource compiler support 2005-09-06 20:28:03 +00:00
COPYING
cp437.pas
cp850.pas
cp8859_1.pas
cresstr.pas * fixed rtl package building 2005-11-15 22:39:32 +00:00
cstreams.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
cutils.pas * removed hexstr(), already in RTL (and even supports 64 bit integers) 2006-01-08 18:01:34 +00:00
dbgbase.pas + dwarf: objectdef 2006-02-04 16:08:51 +00:00
dbgdwarf.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
dbgstabs.pas + basic dwarf support for variables and types 2006-01-28 16:06:08 +00:00
defcmp.pas * split tstringtype for stringdef and stringconstnode 2006-01-13 17:20:27 +00:00
defutil.pas * basic support for generic classes 2005-12-21 10:11:15 +00:00
dwarf.pas * use alt_dbgframe for call frame info labels 2006-01-25 21:48:27 +00:00
export.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
finput.pas + Fixed -o option 2005-11-05 23:26:23 +00:00
fmodule.pas + basic dwarf support for variables and types 2006-01-28 16:06:08 +00:00
fpccrc.pas * Rename unit crc to fpccrc to avoid name conflict in packages 2005-12-01 16:45:44 +00:00
fpcdefs.inc - more PowerPC64 fixes; "Hello World" style programs can be compiled and run 2005-09-27 18:16:49 +00:00
fppu.pas * refactor booleans in systeminfo structure, they are now flags 2006-01-13 15:13:26 +00:00
gendef.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
globals.pas * compilation for arm target fixed 2006-02-02 17:26:18 +00:00
globtype.pas * procedures which use goto/label revert to the older and less 2006-01-05 23:45:00 +00:00
htypechk.pas * fixed bug #4737 (check for potential range errors in for-loop 2006-02-09 17:39:22 +00:00
impdef.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
import.pas * fix dll linking 2006-02-07 06:55:47 +00:00
link.pas * fixed -dUSE_SYSUTILS compilation 2006-01-29 18:01:53 +00:00
make_old.cmd
Makefile + added palmos support to makes files 2006-02-05 19:22:12 +00:00
Makefile.fpc * makefile adaption to be able to cycle compiler and RTL on PowerPC64 target 2005-10-08 15:48:39 +00:00
mdppc386.bat
mppc68k.bat
mppc386.bat
mppcsparc
MPWMake
msgidx.inc + warn if a static variable is read but not assigned (tw4781*) 2006-02-07 21:23:02 +00:00
msgtxt.inc + warn if a static variable is read but not assigned (tw4781*) 2006-02-07 21:23:02 +00:00
nadd.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
nbas.pas * optimized register allocation for tempnodes 2006-01-08 12:53:43 +00:00
ncal.pas * fixed bug #4737 (check for potential range errors in for-loop 2006-02-09 17:39:22 +00:00
ncgadd.pas * support multiple asmlabel types, renamed getlabel to 2005-09-18 21:16:10 +00:00
ncgbas.pas * tai_const refactored 2006-01-22 12:58:38 +00:00
ncgcal.pas * ppc64/linux: enhanced varargs support (passes tprintf test now) 2005-11-17 21:35:01 +00:00
ncgcnv.pas * split tstringtype for stringdef and stringconstnode 2006-01-13 17:20:27 +00:00
ncgcon.pas * tai_const refactored 2006-01-22 12:58:38 +00:00
ncgflw.pas * procedures which use goto/label revert to the older and less 2006-01-05 23:45:00 +00:00
ncginl.pas * split tstringtype for stringdef and stringconstnode 2006-01-13 17:20:27 +00:00
ncgld.pas * cleaned up segmented thread variables 2006-01-03 12:49:29 +00:00
ncgmat.pas * support multiple asmlabel types, renamed getlabel to 2005-09-18 21:16:10 +00:00
ncgmem.pas * fixed web bug #4669 (usage of location.loc instead of expectloc) 2006-01-08 21:11:04 +00:00
ncgopt.pas * support multiple asmlabel types, renamed getlabel to 2005-09-18 21:16:10 +00:00
ncgset.pas * support multiple asmlabel types, renamed getlabel to 2005-09-18 21:16:10 +00:00
ncgutil.pas * finalization sections in shared libraries under Darwin are now run 2006-02-07 14:29:58 +00:00
ncnv.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
ncon.pas * split tstringtype for stringdef and stringconstnode 2006-01-13 17:20:27 +00:00
nflw.pas * fixed bug #4737 (check for potential range errors in for-loop 2006-02-09 17:39:22 +00:00
ninl.pas * fixed web bug #4724 (don't allow inc/dec(pointer,pointer) 2006-02-09 18:18:47 +00:00
nld.pas * fixed bug #4737 (check for potential range errors in for-loop 2006-02-09 17:39:22 +00:00
nmat.pas * new categories for vs_*: vs_declared, vs_initialised, vs_read, 2005-12-10 16:51:26 +00:00
nmem.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
nobj.pas * align interface offsets 2006-02-10 08:30:35 +00:00
node.pas + mmx support revived, fixes bug #4106 2005-07-02 11:53:51 +00:00
nopt.pas * node optimizer branch merged 2005-06-19 17:42:10 +00:00
nset.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
nstate.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
nutils.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
ogbase.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
ogcoff.pas + basic dwarf support for variables and types 2006-01-28 16:06:08 +00:00
ogelf.pas + basic dwarf support for variables and types 2006-01-28 16:06:08 +00:00
oglx.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
ogmap.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
optcse.pas * fixed some small problems in loop unrolling 2005-06-19 21:00:27 +00:00
options.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
optunrol.pas * fixed some small problems in loop unrolling 2005-06-19 21:00:27 +00:00
owar.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
owbase.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
parabase.pas * generic compiler patches for ppc64/linux PIC code 2006-01-08 13:27:31 +00:00
paramgr.pas + 1st attempt to have explicit funcretloc for Amiga/m68k 2005-12-18 03:58:27 +00:00
parser.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
pass_1.pas * fixed compilerwidestring concatenation 2005-12-04 18:29:07 +00:00
pass_2.pas * remove check for expectloc<>location.loc, it doesn't work anymore for 2005-10-20 06:51:40 +00:00
pbase.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
pdecl.pas * more dup id fixes 2006-02-07 07:58:37 +00:00
pdecobj.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
pdecsub.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
pdecvar.pas * fix searching of typenames in records 2006-02-06 07:07:37 +00:00
pexports.pas * exports info handling refactored, -E will be passed to ld if necessary 2005-12-10 22:00:33 +00:00
pexpr.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
pinline.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
pmodules.pas * fixed invalid memory read in tp-mode when parsing uses clause 2006-02-10 08:01:53 +00:00
pp.lpi + added palmos support to makes files 2006-02-05 19:22:12 +00:00
pp.pas * compilation for arm target fixed 2006-02-02 17:26:18 +00:00
ppc.cfg
ppc.conf
ppc.dof
ppc.dpr * remove $Log 2005-06-07 09:47:55 +00:00
ppheap.pas + Removed all compatibility defines from compiler 2005-06-09 21:14:22 +00:00
ppu.pas * tai_const refactored 2006-01-22 12:58:38 +00:00
procinfo.pas * support multiple asmlabel types, renamed getlabel to 2005-09-18 21:16:10 +00:00
pstatmnt.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
psub.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
psystem.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
ptconst.pas * split tstringtype for stringdef and stringconstnode 2006-01-13 17:20:27 +00:00
ptype.pas * more dup id fixes 2006-02-07 07:58:37 +00:00
raatt.pas * new assembler symbol type AT_LABEL needed for PowerPc64 target 2005-10-03 22:13:45 +00:00
rabase.pas * basic framework for integrated arm assembler 2005-09-07 21:34:25 +00:00
rasm.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
rautils.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
README
regvars.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
rgbase.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
rgobj.pas + translate register variable locations, enables register variable debug info, with SSA it requires to be extended maintaining location list 2006-02-02 21:27:23 +00:00
scandir.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
scanner.pas * more dup id fixes 2006-02-07 07:58:37 +00:00
script.pas Fixed Unix2Amiga path conversions for external asm script 2005-11-24 11:41:59 +00:00
switches.pas * $W switch sets the localswitch cs_generate_stackframes that can be 2005-10-19 05:50:26 +00:00
symbase.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
symconst.pas + warn if a static variable is read but not assigned (tw4781*) 2006-02-07 21:23:02 +00:00
symdef.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
symnot.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
symsym.pas * also perform initialised checking for out-parameter, and set the 2006-02-08 20:33:15 +00:00
symtable.pas * don't report sym_w_identifier_only_read for exported or external 2006-02-08 20:30:07 +00:00
symtype.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
symutil.pas * fix default parameter compare for widestring 2005-08-30 06:23:31 +00:00
systems.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
tgobj.pas * powerpc64 port from Thomas Schatzl 2005-09-25 17:19:44 +00:00
tokens.pas * Enable recognition of property keyword in all modes now that 2006-01-03 23:11:28 +00:00
verbose.pas + -vb: writes compiler messages with full path instead of the file name only 2005-09-18 18:09:19 +00:00
version.pas * powerpc64 port from Thomas Schatzl 2005-09-25 17:19:44 +00:00
widestr.pas * fixed compilerwidestring concatenation 2005-12-04 18:29:07 +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