fpc/compiler
Jonas Maebe b1b9894ae3 * initial Objective-C 1.0 support:
o support for declaring external Objective-C classes (see
      rtl/inc/objcbase.pas), including derived classes
    o support for converting methods of objcclasses into selectors
      (see tests/test/tobjc1.pp)
    o support for loading from/storing to fields of objcclasses
    o support for calling Objective-C methods using regular
      Object Pascal syntax (see tests/test/tobjc1.pp)
    o some things that are known to be not yet working:
      o automatic conversion from ID to objcclasses and back
      o declaring and implementing new objcclasses/methods in Pascal code
      o debug information (objcclasses are currently plain pointers
        as far as the debugger knows)

git-svn-id: branches/objc@13162 -
2009-05-17 13:42:50 +00:00
..
alpha
arm * align the stack pointer to alignment.localalignmax, fixes crashes on 2009-04-24 12:35:26 +00:00
avr * less code commented 2009-02-25 19:41:30 +00:00
html
i386 * insert register allocation/deallocation information for the exception 2009-05-06 19:11:54 +00:00
ia64
m68k * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
mips
msg * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
powerpc + added {$modeswitch objectivec1}/-Mobjectivec1 mode switch to enable 2009-03-08 18:40:32 +00:00
powerpc64 * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
ppcgen * fixed ppc/ppc64 compilation after r12719 2009-02-09 09:47:02 +00:00
sparc * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
systems * fixed compilation with -Cr after r13147 2009-05-17 10:07:54 +00:00
utils * Use ExeSearch instead of FileSearch to find compiler executable 2009-03-22 10:03:03 +00:00
vis
x86 * Fixed dead code warning. 2009-05-13 11:27:48 +00:00
x86_64 * Added missing override directive in trgcpu.add_constraints method for x86_64 CPU. It was missing for years and I am not sure that this code is really needed. Please review. 2009-05-13 11:37:09 +00:00
aasmbase.pas + added {$modeswitch objectivec1}/-Mobjectivec1 mode switch to enable 2009-03-08 18:40:32 +00:00
aasmdata.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
aasmsym.pas
aasmtai.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
aggas.pas * replaced old DWARF CFI section notation for Darwin with new one (more 2009-03-19 14:22:26 +00:00
aopt.pas * more aint() type casts replaced by int64() type casts 2008-11-13 19:44:30 +00:00
aoptbase.pas * use labelCanBeSkipped as used by i386 in generic optimizer code too 2009-02-27 13:03:12 +00:00
aoptcs.pas
aoptda.pas
aoptobj.pas * fixed wrongly fix of r11444 in r12049 2008-11-12 20:55:06 +00:00
assemble.pas * Fixed internal assembler writer to handle offset calculations with forward symbols involved. Internal assembler can handle dwarf debug info now. 2009-05-04 11:19:48 +00:00
browcol.pas * fixed warnings and removed unused "Current_moduleIndex" global variable 2009-04-30 15:32:28 +00:00
bsdcompile
catch.pas - disabled installation of SIGINT signal handler for Darwin, because 2009-02-28 18:07:21 +00:00
ccharset.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
cclasses.pas * fixed range check error 2008-09-21 18:52:13 +00:00
cfidwarf.pas
cfileutl.pas + Made a single Amiga/MorphOS-specific PathConv import to cfileutl.pas, instead of importing it every single place it is needed. 2009-01-03 14:34:59 +00:00
cg64f32.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
cgbase.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
cgobj.pas * insert register allocation/deallocation information for the exception 2009-05-06 19:11:54 +00:00
cgutils.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
cmsgs.pas + -vq parameter to show message numbers 2008-10-12 12:19:41 +00:00
comphook.pas + -vq parameter to show message numbers 2008-10-12 12:19:41 +00:00
compiler.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
compinnr.inc + added {$modeswitch objectivec1}/-Mobjectivec1 mode switch to enable 2009-03-08 18:40:32 +00:00
comprsrc.pas * fixed calling windres: don't create short names with forward slashes for output file name, becaause it fails, if the output file does not yet exist. Short names are only required for parameters that windres pass on to the preprocessor. 2009-01-15 22:35:17 +00:00
constexp.pas
COPYING.txt * added .txt extensions to all README, TODO and COPYING files 2009-02-28 17:34:08 +00:00
cp437.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
cp850.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
cp866.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
cp1251.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
cp8859_1.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
cp8859_5.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
crefs.pas
cresstr.pas
cstreams.pas
cutils.pas * Removed unused local vars. 2009-03-01 11:44:15 +00:00
dbgbase.pas * split tvisibility from tsymoptions 2008-11-11 09:05:39 +00:00
dbgdwarf.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
dbgstabs.pas * Insert DW_AT_low_pc and DW_AT_high_pc attributes for modules on Windows also. It solves debugging problems on Windows with dwarf debug info. 2009-05-04 18:36:08 +00:00
defcmp.pas + test conversion from class to differently sized enum and to differently 2009-05-16 11:07:09 +00:00
defutil.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
export.pas
expunix.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
finput.pas * prefix for import libraries now configurable rather than hardcoded, plus fixed issue with name of OS/2 import libraries 2009-02-09 00:01:15 +00:00
fmodule.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
fpccrc.pas
fpcdefs.inc + FPC_ARMEB and CPUARMEB similiar to FPC_ARMEL and CPUARMEL 2009-03-17 13:43:24 +00:00
fppu.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
gendef.pas
globals.pas * fixed compilation with -Cr after r13147 2009-05-17 10:07:54 +00:00
globtype.pas * don't emit "include file search paths" for stabs since they don't exist 2009-03-20 18:35:17 +00:00
htypechk.pas * accept overloaded operators that return any shortstring type when needing 2009-01-24 15:12:19 +00:00
impdef.pas
import.pas
link.pas * only store debug link file name in .gnu_debuglink section 2009-03-14 14:03:38 +00:00
Makefile * replaced PATHSEP by / for instruction and register table generation 2009-02-24 19:57:40 +00:00
Makefile.fpc * replaced PATHSEP by / for instruction and register table generation 2009-02-24 19:57:40 +00:00
MPWMake
msgidx.inc * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
msgtxt.inc * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
nadd.pas * store/restore taddnode.resultrealdef to/from the ppufiles, and also 2009-04-27 21:03:11 +00:00
nbas.pas * fix writing of goto node to ppu 2008-09-03 20:46:04 +00:00
ncal.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
ncgadd.pas
ncgbas.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
ncgcal.pas * fixed location_free() for locations consisting of multiple 2009-04-20 18:57:49 +00:00
ncgcnv.pas * set size of nil constants casted to method pointers correctly, first part of resolving #10684 2009-02-28 20:01:58 +00:00
ncgcon.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
ncgflw.pas * insert register allocation/deallocation information for the exception 2009-05-06 19:11:54 +00:00
ncginl.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
ncgld.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
ncgmat.pas * always specify an explicit alignment for tgobj.gettemp (so e.g. 2008-11-08 22:20:47 +00:00
ncgmem.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
ncgobjc.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
ncgopt.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
ncgrtti.pas * fixed internal error when a subscripted object is used in a property 2009-03-22 16:21:06 +00:00
ncgset.pas
ncgutil.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
ncnv.pas * fixed bug #5800 2009-02-09 00:35:09 +00:00
ncon.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
nflw.pas + strength reduction for array accesses inside for loops 2008-09-26 18:23:31 +00:00
ninl.pas * give an error when the typeinfo() function is called for an enumeration 2009-03-22 20:54:49 +00:00
nld.pas
nmat.pas * changed "Mixing signed expressions and longwords gives a 64bit result" 2008-11-13 19:49:46 +00:00
nmem.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
nobj.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
nobjc.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
node.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
nopt.pas
nset.pas * fix writing of goto node to ppu 2008-09-03 20:46:04 +00:00
nstate.pas
nutils.pas * set the node complexity of realconstn to 1 instead of the default (maximum) 2009-03-19 14:20:51 +00:00
objcgutl.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
objcutil.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
ogbase.pas * More proper check for executable image size limits. 2009-05-06 18:07:07 +00:00
ogcoff.pas * Fixed writing of external debug info when reloc section should be created. 2009-05-15 22:30:52 +00:00
ogelf.pas + added {$modeswitch objectivec1}/-Mobjectivec1 mode switch to enable 2009-03-08 18:40:32 +00:00
oglx.pas
ogmap.pas
optbase.pas * set successor properly for for-nodes 2008-09-18 18:33:43 +00:00
optcse.pas
optdead.pas * first search for gnm and only then for nm 2008-12-12 13:03:27 +00:00
optdfa.pas * set result of ResetDFA, resolves #12757 2008-12-12 21:47:21 +00:00
options.pas * Fixed setting of image base using {$IMAGEBASE X} directive. 2009-05-15 23:12:02 +00:00
optloop.pas * compilation fixed 2008-11-12 20:42:21 +00:00
opttail.pas
optutils.pas + strength reduction for array accesses inside for loops 2008-09-26 18:23:31 +00:00
optvirt.pas * don't replace the vmt entries of unused published virtual methods with 2009-04-26 09:42:33 +00:00
owar.pas
owbase.pas
parabase.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
paramgr.pas * always specify an explicit alignment for tgobj.gettemp (so e.g. 2008-11-08 22:20:47 +00:00
parser.pas * current_objectdef is now always valid when parsing is within the 2008-11-12 18:54:39 +00:00
pass_1.pas * delay verbosity changes just like localswitches changes 2008-11-03 21:18:27 +00:00
pass_2.pas * patch by Sergei Gorelkin: fixes compilation with -dEXTDEBUG 2009-04-25 20:02:08 +00:00
pbase.pas
pdecl.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
pdecobj.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
pdecsub.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
pdecvar.pas * reject "absolute" variables referencing locations with implicit 2009-03-13 21:17:39 +00:00
pexports.pas * fixed invalid type cast in case of errors in a library's export section 2008-11-01 17:08:26 +00:00
pexpr.pas + added {$modeswitch objectivec1}/-Mobjectivec1 mode switch to enable 2009-03-08 18:40:32 +00:00
pinline.pas * give a generic "type mismatch" error if copy() is called with less than 2009-05-01 11:40:02 +00:00
pmodules.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
pp.lpi * version got updated 2009-01-23 13:26:33 +00:00
pp.pas + FPC_ARMEB and CPUARMEB similiar to FPC_ARMEL and CPUARMEL 2009-03-17 13:43:24 +00:00
ppc68k.lpi
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi * convert int64 properly to c-bools, resolves #12614 2008-11-16 13:27:59 +00:00
ppcavr.lpi * continued work on avr-embedded 2008-08-14 14:23:25 +00:00
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas * Insert DW_AT_low_pc and DW_AT_high_pc attributes for modules on Windows also. It solves debugging problems on Windows with dwarf debug info. 2009-05-04 18:36:08 +00:00
ppx86_64.lpi
procinfo.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
pstatmnt.pas * always create a temp for MacPas objects in with-expressions (mantis 2009-02-19 22:43:59 +00:00
psub.pas * also check that nested procedures don't have any nested procedures 2009-04-22 15:12:42 +00:00
psystem.pas + added {$modeswitch objectivec1}/-Mobjectivec1 mode switch to enable 2009-03-08 18:40:32 +00:00
ptconst.pas * fixed parsing of typed constant bitpacked arrays where the element's 2009-03-01 13:13:04 +00:00
ptype.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
raatt.pas
rabase.pas
rasm.pas
rautils.pas * give an error when trying to use the offset of a non-byte-aligned field 2009-04-23 17:27:44 +00:00
README.txt * added .txt extensions to all README, TODO and COPYING files 2009-02-28 17:34:08 +00:00
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas * always specify an explicit alignment for tgobj.gettemp (so e.g. 2008-11-08 22:20:47 +00:00
scandir.pas * delay effect of {$calling x} until switches are flushed (mantis #12985) 2009-03-20 16:27:56 +00:00
scanner.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
script.pas + Made a single Amiga/MorphOS-specific PathConv import to cfileutl.pas, instead of importing it every single place it is needed. 2009-01-03 14:34:59 +00:00
switches.pas * check validity of calling conventions specified using {$calling x} 2009-03-21 21:21:45 +00:00
symbase.pas * split tvisibility from tsymoptions 2008-11-11 09:05:39 +00:00
symconst.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
symdef.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
symnot.pas
symsym.pas o fixed r13033: 2009-04-24 22:29:05 +00:00
symtable.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
symtype.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
symutil.pas
systems.pas * prefix for import libraries now configurable rather than hardcoded, plus fixed issue with name of OS/2 import libraries 2009-02-09 00:01:15 +00:00
tgobj.pas * always specify an explicit alignment for tgobj.gettemp (so e.g. 2008-11-08 22:20:47 +00:00
tokens.pas * initial Objective-C 1.0 support: 2009-05-17 13:42:50 +00:00
verbose.pas * delay verbosity changes just like localswitches changes 2008-11-03 21:18:27 +00:00
version.pas
widestr.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
wpo.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
wpobase.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
wpoinfo.pas * don't free deref info after using it, because it may be needed again 2009-04-22 14:52:27 +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 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