fpc/compiler
peter ce58e15393 * fix coff section names to fix resourcestrings with
the external linker
  * create import libraries for dll imports, this uses
    the new objdata framework to generate the binary
    object files directly without needing an assembler pass
  * store import_dll and import_name in ppu
  * external linker uses import libraries
  * internal linker uses import info from symtables,
    no dlls are needed anymore

git-svn-id: trunk@3255 -
2006-04-17 20:48:22 +00:00
..
alpha Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
arm * fix alignment of tdoublearray by using a variant record 2006-03-29 06:40:47 +00:00
html
i386 * fixed returning of records < 8 bytes but not a power of 2 from 2006-04-12 12:19:08 +00:00
ia64
m68k * split newasmsymbol to refasmsymbol and defineasmsymbol 2006-03-27 11:45:18 +00:00
mips Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
msg * fixed typo in comments 2006-04-14 09:16:43 +00:00
powerpc * added missing masking of upper 24/16 bits on ppc after performing 2006-04-14 13:01:10 +00:00
powerpc64 * split newasmsymbol to refasmsymbol and defineasmsymbol 2006-03-27 11:45:18 +00:00
sparc Merged revisions 3072-3073 via svnmerge from 2006-03-30 06:36:42 +00:00
systems * fix coff section names to fix resourcestrings with 2006-04-17 20:48:22 +00:00
utils * fix coff section names to fix resourcestrings with 2006-04-17 20:48:22 +00:00
vis Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
x86 + stack touching for win64 2006-04-17 19:00:53 +00:00
x86_64 * pass records of all sizes by reference if they are const 2006-04-17 18:12:14 +00:00
aasmbase.pas * leb128 gets always a 64bit int 2006-03-27 13:42:06 +00:00
aasmdata.pas Merged revisions 3090-3113 via svnmerge from 2006-04-02 00:11:17 +00:00
aasmtai.pas * fixed pe flags x86_64 2006-04-01 20:09:13 +00:00
aggas.pas * fixed compilation on winx64 2006-04-17 20:33:07 +00:00
aopt.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
aoptbase.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
aoptcs.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
aoptda.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
aoptobj.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
assemble.pas * don't write individual names of all assembler files when generating 2006-04-16 18:25:20 +00:00
browcol.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
browlog.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
bsdcompile
catch.pas
cclasses.pas * TFPHashList.Pack now also packs the items 2006-04-05 12:36:17 +00:00
cfidwarf.pas * use dwarf_reg() 2006-03-26 20:15:32 +00:00
cg64f32.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
cgbase.pas * return OS_NO from int_cgsize() for sizes which are not a power of 2 2006-04-06 22:09:25 +00:00
cgobj.pas * split newasmsymbol to refasmsymbol and defineasmsymbol 2006-03-27 11:45:18 +00:00
cgutils.pas * turned {$ifdef cputargethasfixedstack} into "if use_fixed_stack" 2006-03-10 23:44:04 +00:00
charset.pas
cmsgs.pas
comphook.pas + Statistics of warnings, hints and notes - (modified/fixed) patch from Naj Kejah, part of wishlist item 4897, plus hardcoded text moved to message file 2006-04-09 11:54:09 +00:00
compiler.pas + Statistics of warnings, hints and notes - (modified/fixed) patch from Naj Kejah, part of wishlist item 4897, plus hardcoded text moved to message file 2006-04-09 11:54:09 +00:00
compinnr.inc + slice implemented 2005-10-15 16:48:27 +00:00
comprsrc.pas * link_allways -> link_always (forgot to commit as well :) 2006-02-15 16:51:05 +00:00
COPYING
cp437.pas
cp850.pas
cp8859_1.pas
cresstr.pas * don't put resstrs in multiple .o files. It is too dependent on the linker script 2006-03-31 19:44:33 +00:00
cstreams.pas Merged revisions 2669,2673,2677,2683,2696,2699-2702,2704,2708,2712-2715,2718,2722-2723,2728-2730,2740,2769 via svnmerge from 2006-03-05 21:10:37 +00:00
cutils.pas Merged revisions 2791-2793,2798-2800,2806-2825,2829-2830,2833,2839,2898 via svnmerge from 2006-03-13 09:29:57 +00:00
dbgbase.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
dbgdwarf.pas * leb128 gets always a 64bit int 2006-03-27 13:42:06 +00:00
dbgstabs.pas * fixed section smartlinking with ld.exe 2006-04-02 20:18:38 +00:00
defcmp.pas Merged revisions 2775,2788-2789 via svnmerge from 2006-03-06 12:04:44 +00:00
defutil.pas + get_max_value in defutil 2006-03-28 11:49:16 +00:00
export.pas
finput.pas * fix coff section names to fix resourcestrings with 2006-04-17 20:48:22 +00:00
fmodule.pas * fix coff section names to fix resourcestrings with 2006-04-17 20:48:22 +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 Merged revisions 2669,2673,2677,2683,2696,2699-2702,2704,2708,2712-2715,2718,2722-2723,2728-2730,2740,2769 via svnmerge from 2006-03-05 21:10:37 +00:00
fppu.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
gendef.pas
globals.pas * fix coff section names to fix resourcestrings with 2006-04-17 20:48:22 +00:00
globtype.pas Merged revisions 3068,3070,3114 via svnmerge from 2006-04-02 00:13:03 +00:00
htypechk.pas * properly count references to overloaded operators (tests/tbs/tb0500.pp) 2006-04-14 09:12:48 +00:00
impdef.pas
import.pas * fix coff section names to fix resourcestrings with 2006-04-17 20:48:22 +00:00
link.pas * fix coff section names to fix resourcestrings with 2006-04-17 20:48:22 +00:00
make_old.cmd
Makefile * use -O2 for 2.1.1 compilers 2006-03-19 11:19:43 +00:00
Makefile.fpc Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
mdppc386.bat
mppc68k.bat
mppc386.bat
mppcsparc
MPWMake
msgidx.inc * give an error for {$calling } (i.e., when a procedure directive is 2006-04-12 07:58:25 +00:00
msgtxt.inc * give an error for {$calling } (i.e., when a procedure directive is 2006-04-12 07:58:25 +00:00
nadd.pas * avoid some unnecessary bool->int->bool type conversions 2006-04-09 18:33:05 +00:00
nbas.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
ncal.pas * support proc to procvar conversion for overloaded procdefs passed to parameters 2006-03-21 07:51:54 +00:00
ncgadd.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
ncgbas.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
ncgcal.pas Merged revisions 3090-3113 via svnmerge from 2006-04-02 00:11:17 +00:00
ncgcnv.pas * avoid some unnecessary bool->int->bool type conversions 2006-04-09 18:33:05 +00:00
ncgcon.pas * fix alignment of tdoublearray by using a variant record 2006-03-29 06:40:47 +00:00
ncgflw.pas * split newasmsymbol to refasmsymbol and defineasmsymbol 2006-03-27 11:45:18 +00:00
ncginl.pas * split newasmsymbol to refasmsymbol and defineasmsymbol 2006-03-27 11:45:18 +00:00
ncgld.pas * split newasmsymbol to refasmsymbol and defineasmsymbol 2006-03-27 11:45:18 +00:00
ncgmat.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
ncgmem.pas * split newasmsymbol to refasmsymbol and defineasmsymbol 2006-03-27 11:45:18 +00:00
ncgopt.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
ncgset.pas * fixed regvar bug in in-node code (regvar could be modified by 2006-04-11 15:08:07 +00:00
ncgutil.pas * fixed section smartlinking with ld.exe 2006-04-02 20:18:38 +00:00
ncnv.pas * patch from Jonas to pass interface result as parameter 2006-04-13 07:04:48 +00:00
ncon.pas * don't allow stringconst+integer 2006-03-27 07:22:02 +00:00
nflw.pas * rewrite of optimizer options 2006-03-13 09:05:50 +00:00
ninl.pas * fix alignment of tdoublearray by using a variant record 2006-03-29 06:40:47 +00:00
nld.pas * don't allow stringconst+integer 2006-03-27 07:22:02 +00:00
nmat.pas * rewrite of optimizer options 2006-03-13 09:05:50 +00:00
nmem.pas * fixed web bug #4913 (don't allow indexing of strings/variants/pointers 2006-03-18 11:05:04 +00:00
nobj.pas Merged revisions 3090-3113 via svnmerge from 2006-04-02 00:11:17 +00:00
node.pas * moved type conversion of C varargs from tcallnode to 2006-03-17 22:26:48 +00:00
nopt.pas * rewrite of optimizer options 2006-03-13 09:05:50 +00:00
nset.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
nstate.pas
nutils.pas * fixed simplifying 2006-03-04 22:04:53 +00:00
ogbase.pas * fix coff section names to fix resourcestrings with 2006-04-17 20:48:22 +00:00
ogcoff.pas * fix coff section names to fix resourcestrings with 2006-04-17 20:48:22 +00:00
ogelf.pas * fixed and simplified section handling now all sections are 2006-04-03 08:47:20 +00:00
oglx.pas Merged revisions 2669,2673,2677,2683,2696,2699-2702,2704,2708,2712-2715,2718,2722-2723,2728-2730,2740,2769 via svnmerge from 2006-03-05 21:10:37 +00:00
ogmap.pas Merged revisions 2791-2793,2798-2800,2806-2825,2829-2830,2833,2839,2898 via svnmerge from 2006-03-13 09:29:57 +00:00
optcse.pas
options.pas Merged revisions 3068,3070,3114 via svnmerge from 2006-04-02 00:13:03 +00:00
optunrol.pas * aktcputype and aktoptimizecputype was missing in the previous optimization commits 2006-03-13 12:29:56 +00:00
owar.pas Merged revisions 2775,2788-2789 via svnmerge from 2006-03-06 12:04:44 +00:00
owbase.pas * enabled internal linker for winx64 2006-04-01 12:39:15 +00:00
parabase.pas Merged revisions 2775,2788-2789 via svnmerge from 2006-03-06 12:04:44 +00:00
paramgr.pas * interfaces return values need to be passed in parameters 2006-04-12 10:26:10 +00:00
parser.pas Merged revisions 2827,2831,2837,2932-2980 via svnmerge from 2006-03-19 22:12:52 +00:00
pass_1.pas * fixed compilerwidestring concatenation 2005-12-04 18:29:07 +00:00
pass_2.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
pbase.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
pdecl.pas Merged revisions 3009 via svnmerge from 2006-03-26 18:54:19 +00:00
pdecobj.pas Merged revisions 2775,2788-2789 via svnmerge from 2006-03-06 12:04:44 +00:00
pdecsub.pas * fix coff section names to fix resourcestrings with 2006-04-17 20:48:22 +00:00
pdecvar.pas * fixed c record aligning for ppc after symtablestack structure change 2006-04-07 20:41:33 +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 * count references to symbols accessed via properties (fixes bug #4826) 2006-03-18 22:53:27 +00:00
pinline.pas * symtablestack cleanup and rewrite 2006-02-05 22:24:18 +00:00
pmodules.pas * fixed section smartlinking with ld.exe 2006-04-02 20:18:38 +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
ppheap.pas
ppu.pas * fix coff section names to fix resourcestrings with 2006-04-17 20:48:22 +00:00
procinfo.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
pstatmnt.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
psub.pas * fix coff section names to fix resourcestrings with 2006-04-17 20:48:22 +00:00
psystem.pas * use double as bestreal on win64 2006-04-17 16:05:05 +00:00
ptconst.pas * split newasmsymbol to refasmsymbol and defineasmsymbol 2006-03-27 11:45:18 +00:00
ptype.pas * don't allow stringconst+integer 2006-03-27 07:22:02 +00:00
raatt.pas * split newasmsymbol to refasmsymbol and defineasmsymbol 2006-03-27 11:45:18 +00:00
rabase.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
rasm.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
rautils.pas * split newasmsymbol to refasmsymbol and defineasmsymbol 2006-03-27 11:45:18 +00:00
README
regvars.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
rgbase.pas
rgobj.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
scandir.pas * give an error for {$calling } (i.e., when a procedure directive is 2006-04-12 07:58:25 +00:00
scanner.pas * support goto/label by default in tp/delphi/macpas modes (bug 4893) 2006-03-18 22:25:41 +00:00
script.pas Fixed Unix2Amiga path conversions for external asm script 2005-11-24 11:41:59 +00:00
switches.pas * list supported optimization options in -i 2006-03-13 11:17:56 +00:00
symbase.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
symconst.pas * fix coff section names to fix resourcestrings with 2006-04-17 20:48:22 +00:00
symdef.pas * fix coff section names to fix resourcestrings with 2006-04-17 20:48:22 +00:00
symnot.pas
symsym.pas * fixed mm register parameters which were messed up by a previous commit 2006-04-02 19:15:38 +00:00
symtable.pas Merged revisions 2921-2922,2925 via svnmerge from 2006-03-16 08:52:22 +00:00
symtype.pas * use shortint for alignments 2006-03-20 08:29:13 +00:00
symutil.pas
systems.pas * made ar'ing of smartlinked libraries a lot faster 2006-04-16 18:43:28 +00:00
tgobj.pas * use shortint for alignments 2006-03-20 08:29:13 +00:00
tokens.pas + Add m_property mode switch to allow per mode recognition of 2006-02-14 17:11:18 +00:00
verbose.pas + Statistics of warnings, hints and notes - (modified/fixed) patch from Naj Kejah, part of wishlist item 4897, plus hardcoded text moved to message file 2006-04-09 11:54:09 +00:00
version.pas
widestr.pas * donewidestring has var instead of out parameter 2006-02-12 15:02:46 +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