fpc/compiler
Jonas Maebe 0c675a4039 * the objc1 unit has been renamed to objc
* the objc unit links against the Foundation instead of against the Cocoa
    framework, and inludes an interface to either the fragile or non-fragile
    obj-c run time depending on the target platform
  + support for the non-fragile Objective-C runtime/ABI, as used on Mac OS X
    for ARM (iPhone) 64 bit (PowerPC/64, x86_64) -- all these targets now
    are now also supported for the objectivec1 modeswitch
  + support for private_extern symbol bindings, required for the above
  * mark objcclasses that are declared in the implementation section of a
    unit as "hidden" (not sure what the effect is, since the Objective-C
    runtime does not seem to do anything with this flag)
  * enabled all obj-c tests for the newly supported platforms

git-svn-id: branches/objc@13763 -
2009-09-27 15:24:50 +00:00
..
alpha
arm * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
avr * fixed handling the result value of functions where the result type is 2009-09-12 12:21:34 +00:00
html
i386 * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
ia64
m68k * added register type parameter to cgsize2subreg(), as the subreg can 2009-07-19 13:57:23 +00:00
mips
msg * message changes belonging to r13701 2009-09-12 17:44:41 +00:00
powerpc * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
powerpc64 * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
ppcgen * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
sparc * fixed handling the result value of functions where the result type is 2009-09-12 12:21:34 +00:00
systems * several fixes by Pierre Pede (parts of his patch to mantis #12492) 2009-09-12 21:57:41 +00:00
utils * regenerated using latest fpcmake 2009-08-02 18:40:14 +00:00
vis
x86 * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
x86_64 * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
aasmbase.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
aasmdata.pas + support for obj-c protocols implemented in Pascal (based on patch by 2009-09-17 14:24:01 +00:00
aasmsym.pas
aasmtai.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
aggas.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
aopt.pas
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 * moved field definitions before method/property definitions (see mantis 2009-06-27 11:27:31 +00:00
aoptobj.pas
assemble.pas * fixed several omissions that could cause the dynamic linker not to 2009-09-08 16:05:41 +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
cclasses.pas * prefetch next items in TLinkedList.clear, removes most l2 cache misses 2009-09-13 15:30:53 +00:00
cfidwarf.pas
cfileutl.pas * made MorphOS build to cycle again: fixed path_absolute() for Amiga and MorphOS, and fixed AllFilesMask for MorphOS 2009-07-30 00:57:06 +00:00
cg64f32.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
cgbase.pas * do not access local data via the GOT on x86_64, because 2009-09-27 13:43:56 +00:00
cgobj.pas * lying around newline fixes 2009-08-10 18:56:32 +00:00
cgutils.pas - removed SUPPORT_UNALIGNED, FPC_SUPPORTS_UNALIGNED and FPC_UNALIGNED_FIXED 2009-08-23 07:51:26 +00:00
cmsgs.pas
comphook.pas
compiler.pas
compinnr.inc + support for objcencode() (equivalent of Objective-C's @encode()) + test 2009-08-18 19:54:02 +00:00
comprsrc.pas
constexp.pas o patch by Michael V. Denisenko to handle case <string> of (see also #13700) 2009-09-03 20:21:30 +00:00
COPYING.txt * added .txt extensions to all README, TODO and COPYING files 2009-02-28 17:34:08 +00:00
cp437.pas
cp850.pas
cp866.pas
cp1251.pas
cp8859_1.pas
cp8859_5.pas
crefs.pas
cresstr.pas * fixed incompatibility of resource strings with the data reordering done by 2009-09-05 14:40:27 +00:00
cstreams.pas
cutils.pas Merged revisions 13458-13596 via svnmerge from 2009-08-25 19:47:36 +00:00
dbgbase.pas * write all parameters using the order of procdef.paras, eliminates the 2009-09-16 18:46:15 +00:00
dbgdwarf.pas * write all parameters using the order of procdef.paras, eliminates the 2009-09-16 18:46:15 +00:00
dbgstabs.pas * made TDebugInfoDwarf3 inherit from TDebugInfoDwarf2 instead of from 2009-06-20 10:45:04 +00:00
defcmp.pas * fixed type compatibility checking for classrefs and id 2009-09-16 19:02:05 +00:00
defutil.pas Merged revisions 13627-13631,13637-13638,13640,13642-13648,13650-13653,13656-13658,13660,13664-13667,13672-13675,13680,13682,13687 via svnmerge from 2009-09-12 12:42:38 +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 * changed InputFileBufSize from 32kb to 32kb+1byte, because the last 2009-08-22 20:20:11 +00:00
fmodule.pas
fpccrc.pas
fpcdefs.inc - removed SUPPORT_UNALIGNED, FPC_SUPPORTS_UNALIGNED and FPC_UNALIGNED_FIXED 2009-08-23 07:51:26 +00:00
fppu.pas
gendef.pas * enabled version and description directive for all windows 2009-07-25 22:06:37 +00:00
globals.pas * fixed compilation of AVR compiler 2009-06-27 19:31:24 +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 Merged revisions 13458-13596 via svnmerge from 2009-08-25 19:47:36 +00:00
impdef.pas
import.pas
link.pas * moved field definitions before method/property definitions (see mantis 2009-06-27 11:27:31 +00:00
Makefile * allow disabling the wpo cycle with NOWPOCYCLE=1 2009-08-21 14:27:37 +00:00
Makefile.fpc * allow disabling the wpo cycle with NOWPOCYCLE=1 2009-08-21 14:27:37 +00:00
MPWMake
msgidx.inc * message changes belonging to r13701 2009-09-12 17:44:41 +00:00
msgtxt.inc * message changes belonging to r13701 2009-09-12 17:44:41 +00:00
nadd.pas Merged revisions 13351-13373,13376-13457 via svnmerge from 2009-07-26 14:31:50 +00:00
nbas.pas
ncal.pas Merged revisions 13458-13596 via svnmerge from 2009-08-25 19:47:36 +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 handling the result value of functions where the result type is 2009-09-12 12:21:34 +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 - removed FPC_NEW_BIGENDIAN_SETS define and if(n)defs 2009-08-23 08:16:40 +00:00
ncgflw.pas * moved field definitions before method/property definitions (see mantis 2009-06-27 11:27:31 +00:00
ncginl.pas - removed SUPPORT_UNALIGNED, FPC_SUPPORTS_UNALIGNED and FPC_UNALIGNED_FIXED 2009-08-23 07:51:26 +00:00
ncgld.pas * made internalerror unique 2009-07-22 16:17:45 +00:00
ncgmat.pas
ncgmem.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
ncgobjc.pas * use separate pools for obj-c strings and string references 2009-09-07 19:01: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 * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
ncgset.pas
ncgutil.pas Merged revisions 13458-13596 via svnmerge from 2009-08-25 19:47:36 +00:00
ncnv.pas Merged revisions 13458-13596 via svnmerge from 2009-08-25 19:47:36 +00:00
ncon.pas * fixed breakage by r13718 2009-09-16 19:42:56 +00:00
nflw.pas
ninl.pas Merged revisions 13458-13596 via svnmerge from 2009-08-25 19:47:36 +00:00
nld.pas * unified ie 2009-08-09 22:22:30 +00:00
nmat.pas
nmem.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
nobj.pas + support multiple inheritance for obj-c protocols 2009-09-18 11:35:13 +00:00
nobjc.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
node.pas Merged revisions 13627-13631,13637-13638,13640,13642-13648,13650-13653,13656-13658,13660,13664-13667,13672-13675,13680,13682,13687 via svnmerge from 2009-09-12 12:42:38 +00:00
nopt.pas
nset.pas o patch by Michael V. Denisenko to handle case <string> of (see also #13700) 2009-09-03 20:21:30 +00:00
nstate.pas
nutils.pas Merged revisions 13458-13596 via svnmerge from 2009-08-25 19:47:36 +00:00
objcgutl.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
objcutil.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
ogbase.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
ogcoff.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
ogelf.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
oglx.pas
ogmap.pas
optbase.pas * various optimizations by Dave Richards (mantis #12440) 2009-05-27 17:26:50 +00:00
optcse.pas
optdead.pas
optdfa.pas
options.pas * changed error about unsupported -Xr option into a warning, because the 2009-09-06 18:50:11 +00:00
optloop.pas * forbid passing derived classes to call by reference parent classes (for objects, this is still allowed), resolves #13135 2009-08-17 21:46:25 +00:00
opttail.pas
optutils.pas
optvirt.pas * removed unnecessary internalerror triggered when reading wpo info for a 2009-08-19 20:25:41 +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 * fixed handling the result value of functions where the result type is 2009-09-12 12:21:34 +00:00
parser.pas * initialize allow_array_constructor for each compilation run, fixes probably #12283 2009-07-04 15:44:33 +00:00
pass_1.pas * improved code generation by reducing the usage of unneeded temps due to incorrect 2009-09-22 19:24:25 +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 * fixed handling of "type x = y" for objcclass/objcprotocol 2009-09-03 19:42:37 +00:00
pdecobj.pas + support multiple inheritance for obj-c protocols 2009-09-18 11:35:13 +00:00
pdecsub.pas * set type of self for obj-c instance methods to the type of the 2009-09-16 18:40:15 +00:00
pdecvar.pas Merged revisions 13599-13600,13602-13604,13608,13615-13618 via svnmerge from 2009-08-30 09:50:36 +00:00
pexports.pas
pexpr.pas Merged revisions 13458-13596 via svnmerge from 2009-08-25 19:47:36 +00:00
pinline.pas * Copy() with WideChar array or PWideChar parameter should use fpc_unicodestr_copy compilerproc, since fpc_widestr_copy is available only on Windows. Bug #14307. 2009-08-10 13:09:27 +00:00
pmodules.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
pp.lpi * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
pp.pas + FPC_ARMEB and CPUARMEB similiar to FPC_ARMEL and CPUARMEL 2009-03-17 13:43:24 +00:00
ppc68k.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
ppcavr.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
ppcppc.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
ppcsparc.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
ppheap.pas
ppu.pas + support multiple inheritance for obj-c protocols 2009-09-18 11:35:13 +00:00
ppx86_64.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
procinfo.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
pstatmnt.pas --- Merging r13696 through r13760 into '.': 2009-09-27 14:13:44 +00:00
psub.pas * forbid passing derived classes to call by reference parent classes (for objects, this is still allowed), resolves #13135 2009-08-17 21:46:25 +00:00
psystem.pas Merged revisions 13458-13596 via svnmerge from 2009-08-25 19:47:36 +00:00
ptconst.pas Merged revisions 13458-13596 via svnmerge from 2009-08-25 19:47:36 +00:00
ptype.pas + allow defining classrefdefs for objcclasses. Note, this happens using the 2009-09-12 16:46:41 +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
scandir.pas * enabled version and description directive for all windows 2009-07-25 22:06:37 +00:00
scanner.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
script.pas
switches.pas * check validity of calling conventions specified using {$calling x} 2009-03-21 21:21:45 +00:00
symbase.pas --WARNING: start build process with FPC 2.2.4; won't work when 2009-07-09 20:48:28 +00:00
symconst.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
symdef.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
symnot.pas
symsym.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
symtable.pas * fixed hint for unused _cmd parameters after r13737 2009-09-18 11:58:17 +00:00
symtype.pas * reordered fields, safes 2-3 per cent of memory during compilation 2009-08-16 10:22:54 +00:00
symutil.pas
systems.pas * the objc1 unit has been renamed to objc 2009-09-27 15:24:50 +00:00
tgobj.pas
tokens.pas --WARNING: start build process with FPC 2.2.4; won't work when 2009-07-09 20:48:28 +00:00
verbose.pas
version.pas * version 2.5.1 2009-08-13 21:16:05 +00:00
widestr.pas
wpo.pas
wpobase.pas * give an error message when the specified wpo feedback input file 2009-06-06 12:39:09 +00:00
wpoinfo.pas * do not load wpo info from ppu files when we are not generating 2009-06-06 09:08:08 +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