fpc/compiler
florian 9955d5b061 o patch from Sergej Gorelkin to improvement code generation for string literals
* Replaces linear search through assembler list by the hash lookup. 
    This considerably improves performance on large projects 
    (one example is winunits-jedi package, in which tcgstringconstnode.pass_generate_code 
     was top #1 in calltree, consuming about 12% IRefs).
  * Enables reusing memory locations for widestring constants 
    (and in general, the same approach may be used for any other type of constants).
  * Saves a sizeof(pointer) bytes per constant, by removing a location 
    which points to the string. This location is necessary for the 
    typed consts which may be modified, but redundant for string literals 
    because the language does not allow to modify string literals in any way. 

git-svn-id: trunk@11657 -
2008-08-27 15:16:45 +00:00
..
alpha
arm * Fixed compiler cycling with enabled range and overflow checking. 2008-07-29 21:11:03 +00:00
avr * continued to play with avr 2008-08-15 13:52:54 +00:00
html
i386 - removed obsolete USECMOV define 2008-08-24 12:46:42 +00:00
ia64
m68k + ror/rol functions 2008-07-27 17:12:32 +00:00
mips * Replaced all user defined warnings by TODO comments to reduce compiler noise. 2008-07-23 11:00:03 +00:00
msg * Added error message if resulting executable image size is too big to fit in memory. bug #11702. 2008-07-28 21:54:18 +00:00
powerpc + ror/rol functions 2008-07-27 17:12:32 +00:00
powerpc64 + ror/rol functions 2008-07-27 17:12:32 +00:00
ppcgen * removed code for splitting a 64 bit store into 32 bit ones on 64 bit ppc. For more information see comments of r9721 2008-05-22 16:20:32 +00:00
sparc + ror/rol functions 2008-07-27 17:12:32 +00:00
systems * reverted previous changes, proper fix still to be found :-( 2008-08-21 23:58:07 +00:00
utils * fix for #11865 -Oppentium3 2008-08-14 10:24:06 +00:00
vis
x86 * disabled jump tables for darwin/x86_64 for now since they don't work 2008-08-02 12:23:34 +00:00
x86_64 * Replaced all user defined warnings by TODO comments to reduce compiler noise. 2008-07-23 11:00:03 +00:00
aasmbase.pas * new tf_smartlink_library flag 2007-10-01 16:55:08 +00:00
aasmdata.pas o patch from Sergej Gorelkin to improvement code generation for string literals 2008-08-27 15:16:45 +00:00
aasmsym.pas
aasmtai.pas * split cpu64bit compiler define into 2008-02-13 20:44:00 +00:00
aggas.pas * Replaced all user defined warnings by TODO comments to reduce compiler noise. 2008-07-23 11:00:03 +00:00
aopt.pas * Fixed warnings about hiding inherited method. 2008-07-23 11:51:19 +00:00
aoptbase.pas
aoptcs.pas
aoptda.pas * Fixed level 2 comment warnings. 2008-07-23 10:08:48 +00:00
aoptobj.pas * Added function result for unimplemented methods to prevent warnings. 2008-07-23 11:47:03 +00:00
assemble.pas * set elf flags for soft float on arm 2008-03-25 16:15:15 +00:00
browcol.pas * cleanup and simplify the set type handling 2008-03-02 17:48:27 +00:00
bsdcompile
catch.pas Fix handling of ctrl-c/ctrl-break on go32v2: 2008-06-24 17:02:17 +00:00
cclasses.pas o patch from Sergej Gorelkin to improvement code generation for string literals 2008-08-27 15:16:45 +00:00
cfidwarf.pas * Replaced all user defined warnings by TODO comments to reduce compiler noise. 2008-07-23 11:00:03 +00:00
cfileutl.pas * Fixed compiler cycling with enabled range and overflow checking. 2008-07-29 21:11:03 +00:00
cg64f32.pas
cgbase.pas + ror/rol functions 2008-07-27 17:12:32 +00:00
cgobj.pas + ror/rol functions 2008-07-27 17:12:32 +00:00
cgutils.pas * split cpu64bit compiler define into 2008-02-13 20:44:00 +00:00
cmsgs.pas * optimize fixpath, findfile to not require temp ansistrings 2007-11-19 22:24:52 +00:00
comphook.pas * Use unsigned integers for sizes and positions to break 2GB limit in tdynamicarray, object writer, internal linker, coff and PE headers. 2008-07-28 20:29:25 +00:00
compiler.pas * Use unsigned integers for sizes and positions to break 2GB limit in tdynamicarray, object writer, internal linker, coff and PE headers. 2008-07-28 20:29:25 +00:00
compinnr.inc + ror/rol functions 2008-07-27 17:12:32 +00:00
comprsrc.pas * Improved finding of resource compiler during cross-compilation. 2008-04-21 11:13:13 +00:00
constexp.pas * fixed constant evaluation check for negvalue+posvalue (mantis #11216) 2008-04-26 21:22:08 +00:00
COPYING
cp437.pas
cp850.pas
cp866.pas
cp1251.pas
cp8859_1.pas
cp8859_5.pas
crefs.pas * Fixed warnings about hiding inherited method. 2008-07-23 11:51:19 +00:00
cresstr.pas * split cpu64bit compiler define into 2008-02-13 20:44:00 +00:00
cstreams.pas
cutils.pas - unnecessary type declaration removed 2008-08-03 09:29:22 +00:00
dbgbase.pas * support overriding debuginfo for classrefdefs 2008-07-05 14:25:23 +00:00
dbgdwarf.pas * Suppressed "Values in enumeration types have to be ascending" note. 2008-07-23 12:55:31 +00:00
dbgstabs.pas * Replaced all user defined warnings by TODO comments to reduce compiler noise. 2008-07-23 11:00:03 +00:00
defcmp.pas * Fixed passing of open array of wide string literals to function which expects 'array of pwidechar' parameter in case source file has utf8 encoding. Compiler thrown the following error in such case: Incompatible type for arg no. 1: Got "Array Of Const/Constant Open Array of WideString", expected "Open Array Of PWideChar". 2008-08-14 18:55:10 +00:00
defutil.pas * Fixed unreachable code warnings. 2008-07-23 09:55:44 +00:00
export.pas * factored unix exports handling from t_bsd and t_linux into expunix unit 2008-03-24 16:55:05 +00:00
expunix.pas * renamed for consistency 2008-06-27 14:30:02 +00:00
finput.pas * support -Xg under linux 2008-01-20 12:12:15 +00:00
fmodule.pas Merged revisions 9693-10480 via svnmerge from 2008-03-12 21:33:48 +00:00
fpccrc.pas * Add -Xg to help pages 2008-01-17 01:20:37 +00:00
fpcdefs.inc - removed obsolete USECMOV define 2008-08-24 12:46:42 +00:00
fppu.pas * Use unsigned integers for sizes and positions to break 2GB limit in tdynamicarray, object writer, internal linker, coff and PE headers. 2008-07-28 20:29:25 +00:00
gendef.pas
globals.pas * germanism fixed (aktexceptblock -> current_exceptblock) 2008-07-19 17:06:16 +00:00
globtype.pas * Fixed unreachable code warnings. 2008-07-23 11:31:07 +00:00
htypechk.pas * new node flag nf_modify to mark nodes being read and then written by one load node 2008-08-20 21:35:05 +00:00
impdef.pas
import.pas
link.pas * Use unsigned integers for sizes and positions to break 2GB limit in tdynamicarray, object writer, internal linker, coff and PE headers. 2008-07-28 20:29:25 +00:00
Makefile * regenerated with changes in r11233 2008-06-15 15:52:25 +00:00
Makefile.fpc * add armeb target to compiler/Makefiles 2008-03-24 17:48:11 +00:00
MPWMake
msgidx.inc * Added error message if resulting executable image size is too big to fit in memory. bug #11702. 2008-07-28 21:54:18 +00:00
msgtxt.inc * Added error message if resulting executable image size is too big to fit in memory. bug #11702. 2008-07-28 21:54:18 +00:00
nadd.pas * Replaced all user defined warnings by TODO comments to reduce compiler noise. 2008-07-23 11:00:03 +00:00
nbas.pas * Replaced all user defined warnings by TODO comments to reduce compiler noise. 2008-07-23 11:00:03 +00:00
ncal.pas + set node complexity of const. string nodes to 1 2008-08-23 07:25:53 +00:00
ncgadd.pas * cleanup and simplify the set type handling 2008-03-02 17:48:27 +00:00
ncgbas.pas * split cpu64bit compiler define into 2008-02-13 20:44:00 +00:00
ncgcal.pas * Removed/ifdefed/commented unused local variables. 2008-07-20 23:00:31 +00:00
ncgcnv.pas o patch from Sergej Gorelkin to improvement code generation for string literals 2008-08-27 15:16:45 +00:00
ncgcon.pas o patch from Sergej Gorelkin to improvement code generation for string literals 2008-08-27 15:16:45 +00:00
ncgflw.pas * safecall is only supposed to do anything for Windows targets. Removed 2008-08-16 14:46:20 +00:00
ncginl.pas * Commented out unused var. 2008-07-29 09:59:00 +00:00
ncgld.pas * Replaced all user defined warnings by TODO comments to reduce compiler noise. 2008-07-23 11:00:03 +00:00
ncgmat.pas * split cpu64bit compiler define into 2008-02-13 20:44:00 +00:00
ncgmem.pas * fixed setting bitpacked record fields straddling their natural boundaries 2008-06-18 16:31:39 +00:00
ncgopt.pas * remove registers{int/mmx/fpu} from firstpass 2007-09-26 21:12:01 +00:00
ncgrtti.pas * Don't use dispose for memory allocated with getmem. 2008-07-23 11:38:29 +00:00
ncgset.pas * Fixed 'mixed signed/unsigned' and pointer conversion warnings. 2008-07-23 09:36:07 +00:00
ncgutil.pas * passing by value of variants with stdcall conventions, resolves #10042 2008-08-01 18:03:41 +00:00
ncnv.pas * split typecast_string_to_string into simplify and firstpass, allows better constant propagation when inlining, resolves #11327 2008-08-23 07:29:30 +00:00
ncon.pas * the result of not(dword(ordconst)) has to be dword as well for Delphi 2008-03-06 21:36:32 +00:00
nflw.pas + tfornode.simply which removes for loops being never executed 2008-08-21 21:38:50 +00:00
ninl.pas + ror/rol functions 2008-07-27 17:12:32 +00:00
nld.pas * typos fixed 2008-07-11 19:03:16 +00:00
nmat.pas * make result of not(constant) (with constant type <= sinttype) 2008-03-07 16:33:15 +00:00
nmem.pas * new node flag nf_modify to mark nodes being read and then written by one load node 2008-08-20 21:35:05 +00:00
nobj.pas * method definitions in "child" interfaces also hide those in "parent" 2008-08-16 20:08:25 +00:00
node.pas * new node flag nf_modify to mark nodes being read and then written by one load node 2008-08-20 21:35:05 +00:00
nopt.pas * remove registers{int/mmx/fpu} from firstpass 2007-09-26 21:12:01 +00:00
nset.pas + convert case <boolean> of into if statement, resolves #10517 2008-05-03 10:27:55 +00:00
nstate.pas
nutils.pas + set node complexity of const. string nodes to 1 2008-08-23 07:25:53 +00:00
ogbase.pas * Fixed hang while linking in some cases. 2008-08-03 21:19:33 +00:00
ogcoff.pas * Fixed compiler cycling with enabled range and overflow checking. 2008-07-29 21:11:03 +00:00
ogelf.pas * Fixed compiler cycling with enabled range and overflow checking. 2008-07-29 21:11:03 +00:00
oglx.pas
ogmap.pas * Use unsigned integers for sizes and positions to break 2GB limit in tdynamicarray, object writer, internal linker, coff and PE headers. 2008-07-28 20:29:25 +00:00
optbase.pas
optcse.pas * fixed some crashes 2007-09-20 22:28:54 +00:00
optdfa.pas + tfornode.simply which removes for loops being never executed 2008-08-21 21:38:50 +00:00
options.pas + defined FPC_FULLVERSION as integer constant containing the version, 2008-08-03 09:31:50 +00:00
opttail.pas * error message when a goto label is optimized away 2007-10-17 21:52:25 +00:00
optunrol.pas * fixes loop unrolling 2008-07-17 19:49:03 +00:00
optutils.pas
owar.pas * Use unsigned integers for sizes and positions to break 2GB limit in tdynamicarray, object writer, internal linker, coff and PE headers. 2008-07-28 20:29:25 +00:00
owbase.pas * Use unsigned integers for sizes and positions to break 2GB limit in tdynamicarray, object writer, internal linker, coff and PE headers. 2008-07-28 20:29:25 +00:00
parabase.pas * split cpu64bit compiler define into 2008-02-13 20:44:00 +00:00
paramgr.pas * Removed abstract modifier for some optional (not needed for every CPU target) methods in tcg and tparamanager classes. These methods throw internal error if not overrode. 2008-07-23 12:49:53 +00:00
parser.pas * germanism fixed (aktexceptblock -> current_exceptblock) 2008-07-19 17:06:16 +00:00
pass_1.pas
pass_2.pas * first try to fix #10863 (don't do SSL in case left is already handled in an assignment node) 2008-04-19 09:23:45 +00:00
pbase.pas + experimental directive, resolves #10833 2008-02-15 19:29:34 +00:00
pdecl.pas * store specializations in globalsymtable for units, use localsymtable 2008-07-18 23:30:44 +00:00
pdecobj.pas * split cpu64bit compiler define into 2008-02-13 20:44:00 +00:00
pdecsub.pas * store specializations in globalsymtable for units, use localsymtable 2008-07-18 23:30:44 +00:00
pdecvar.pas * workaround for default property constant value limitations 2008-03-28 10:15:33 +00:00
pexports.pas * export names aren't mangled under OS/2 either (follow-up 2008-04-29 19:08:02 +00:00
pexpr.pas * enable parsing of default properties when used with objects, resolves #10795 2008-05-18 13:27:59 +00:00
pinline.pas * remove registers{int/mmx/fpu} from firstpass 2007-09-26 21:12:01 +00:00
pmodules.pas * Removed/commented more unused variables. 2008-07-23 10:48:53 +00:00
pp.lpi
pp.pas * removed comments to defines not used anymore 2008-07-19 17:01:47 +00:00
ppc68k.lpi
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi
ppcavr.lpi * continued work on avr-embedded 2008-08-14 14:23:25 +00:00
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas * Removed/ifdefed/commented unused local variables. 2008-07-20 23:00:31 +00:00
ppx86_64.lpi + x86_64 units for lazarus 2007-11-24 09:21:25 +00:00
procinfo.pas + PIC support for darwin/ppc32 (-Cg works now, no regressions in test 2007-09-26 16:41:32 +00:00
pstatmnt.pas * Removed/ifdefed/commented unused local variables. 2008-07-20 23:00:31 +00:00
psub.pas * safecall is only supposed to do anything for Windows targets. Removed 2008-08-16 14:46:20 +00:00
psystem.pas * Replaced all user defined warnings by TODO comments to reduce compiler noise. 2008-07-23 11:00:03 +00:00
ptconst.pas * Fixed unreachable code warnings. 2008-07-23 09:55:44 +00:00
ptype.pas * fixes compiler crash with out of memory on illegal array declarations 2008-08-03 10:34:41 +00:00
raatt.pas * undo accidently committed changes from r11398 2008-07-18 15:33:48 +00:00
rabase.pas
rasm.pas
rautils.pas * split cpu64bit compiler define into 2008-02-13 20:44:00 +00:00
README + Haiku support by Olivier Coursière based on old BeOS support 2008-05-19 17:33:35 +00:00
regvars.pas * Replaced all user defined warnings by TODO comments to reduce compiler noise. 2008-07-23 11:00:03 +00:00
rescmn.pas Merged revisions 9693-10480 via svnmerge from 2008-03-12 21:33:48 +00:00
rgbase.pas
rgobj.pas * Fixed 'mixed signed/unsigned' warnings. 2008-07-23 13:16:46 +00:00
scandir.pas * ignore $region/$endregion directives, resolves #11937 2008-08-23 18:42:14 +00:00
scanner.pas * write expressions when getting an invalid operand error in preprocessor 2008-08-11 18:47:43 +00:00
script.pas * fixed handling of directories with spaces for LdSupportsNoResponseFile- 2007-11-24 18:06:01 +00:00
switches.pas
symbase.pas
symconst.pas * store specializations in globalsymtable for units, use localsymtable 2008-07-18 23:30:44 +00:00
symdef.pas * method definitions in "child" interfaces also hide those in "parent" 2008-08-16 20:08:25 +00:00
symnot.pas
symsym.pas * Labels that are defined or referenced in a different lexical level 2008-01-19 13:50:58 +00:00
symtable.pas * reset aktobjectdef before compilation, resolves #10971 2008-05-03 14:36:47 +00:00
symtype.pas * Fixed unreachable code warnings. 2008-07-23 11:31:07 +00:00
symutil.pas
systems.pas + Haiku support by Olivier Coursière based on old BeOS support 2008-05-19 17:33:35 +00:00
tgobj.pas * Properly fill treference.alignment when variable is loaded by tcgloadnode. It allows code generator to insert unaligned handling if needed. 2008-04-16 23:01:20 +00:00
tokens.pas + experimental directive, resolves #10833 2008-02-15 19:29:34 +00:00
verbose.pas * Use unsigned integers for sizes and positions to break 2GB limit in tdynamicarray, object writer, internal linker, coff and PE headers. 2008-07-28 20:29:25 +00:00
version.pas
widestr.pas * make code page name parsing case insensitive (mantis #8930) 2007-09-22 20:54:49 +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