fpc/compiler
Jonas Maebe 8349cde7db * changed byte/word/longbool to be Delphi-compatible (+ similar changes
for qwordbool) + test:
    o assigning true to such a variable now sets them to $ff/$ffff/$ffffffff
    o these types are now all signed
    o converting an integer type to a byte/word/long/qwordbool using an
      explicit type cast keeps the integer's original value stored in the
      bool, instead of forcing it to ord(true)/ord(false)
    (mantis #10233 and #10613, implemented for all architectures, testsuite
     tested for ppc32, sparc and x86)
  * fixed some places where the rtl depended on longbool(true) having the
    value 1
  * extended several boolean tests (and adapted some to no longer assume
    that byte/word/long/qwordbool(true)=1)
  + support for converting to qwordbool in second_int_to_bool for x86, ppc
    and sparc

git-svn-id: trunk@9898 -
2008-01-24 21:30:55 +00:00
..
alpha * moved (unfinished) routines related to writing taicpu's to ppu files 2007-01-02 18:28:05 +00:00
arm * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
html
i386 + Teach peephole optimizer the cmc/adc trick I used in int_str. 2008-01-19 21:47:37 +00:00
ia64
m68k * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
mips + default code now preserves mm registers 2007-10-27 12:02:28 +00:00
msg * Add -Xg to help pages 2008-01-17 01:20:37 +00:00
powerpc * fixed uses of custom-length string types in function/property 2007-12-17 13:36:30 +00:00
powerpc64 * removed code which splits "unaligned" 8 byte stores/loads into two 4 bytes stores/loads on ppc64. The processor manuals and extensive testing showed that PPC970+ class processors have hardware assisted handling of unaligned memory accesses, which results in 8 byte memory accesses to be always faster than 4 byte ones 2008-01-12 13:47:55 +00:00
ppcgen * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
sparc * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
systems * support -Xg under linux 2008-01-20 12:12:15 +00:00
utils It is of course apache 1.3, not 1.13 2008-01-02 13:18:05 +00:00
vis
x86 * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
x86_64 * free saved_standard_registers and saved_mm_registers in 2007-12-25 23:47:44 +00:00
aasmbase.pas * new tf_smartlink_library flag 2007-10-01 16:55:08 +00:00
aasmdata.pas * Labels that are defined or referenced in a different lexical level 2008-01-19 13:50:58 +00:00
aasmsym.pas * moved (unfinished) routines related to writing taicpu's to ppu files 2007-01-02 18:28:05 +00:00
aasmtai.pas * only use ".set" directive when creating dwarf relsyms on darwin and 2008-01-03 12:47:31 +00:00
aggas.pas * only use ".set" directive when creating dwarf relsyms on darwin and 2008-01-03 12:47:31 +00:00
aopt.pas
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas * fixed some warnings about hidden constructors 2007-01-02 14:18:12 +00:00
assemble.pas - garbage was being output sometimes instead of source lines when compiling with -al. This is because lastfileinfo and lastinfile were never initialized for MASM writer. This is true for TPPCMPWAssembler, too. 2007-11-25 16:46:19 +00:00
browcol.pas + first part of support for an unicodestring type 2007-12-02 16:39:13 +00:00
bsdcompile
catch.pas
cclasses.pas * optimized TLinkedList.clear so it can use regvars for everything in 2007-09-02 16:16:25 +00:00
cfidwarf.pas
cfileutl.pas * optimize fixpath, findfile to not require temp ansistrings 2007-11-19 22:24:52 +00:00
cg64f32.pas * Rework the constexprint to allow operations from low(int64) to high(qword). 2007-06-13 07:41:18 +00:00
cgbase.pas * reverted 9727 and made a better fix for it 2008-01-13 13:23:19 +00:00
cgobj.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
cgutils.pas * renamed t_times to executionweight and moved it to 2007-11-25 16:38:05 +00:00
charset.pas
cmsgs.pas * optimize fixpath, findfile to not require temp ansistrings 2007-11-19 22:24:52 +00:00
comphook.pas * optimize fixpath, findfile to not require temp ansistrings 2007-11-19 22:24:52 +00:00
compiler.pas * debuginfo initialized per unit 2007-10-23 18:19:17 +00:00
compinnr.inc + inline abs(<longint>) on x86 2007-11-25 18:54:40 +00:00
comprsrc.pas * search preprocessor binary and add it as command line parameter for windres, so that the cpp doesn't need to be on the path 2007-09-28 19:53:19 +00:00
constexp.pas * revert r8118 2007-07-22 19:59:00 +00:00
COPYING
cp437.pas
cp850.pas
cp866.pas * added missing "reserved" field to new code page files to fix warnings 2007-05-31 15:07:48 +00:00
cp1251.pas - removed some unused variables 2007-07-17 13:57:15 +00:00
cp8859_1.pas
cp8859_5.pas * added missing "reserved" field to new code page files to fix warnings 2007-05-31 15:07:48 +00:00
crefs.pas * Rework the constexprint to allow operations from low(int64) to high(qword). 2007-06-13 07:41:18 +00:00
cresstr.pas * fixed and enabled smartlinking on Darwin by adding more .reference 2007-09-28 22:48:41 +00:00
cstreams.pas * fixed bootstrapping with 2.0.4 2007-07-18 12:15:55 +00:00
cutils.pas * swapendian for 2.0.x 2007-07-22 16:13:43 +00:00
dbgbase.pas * debuginfo initialized per unit 2007-10-23 18:19:17 +00:00
dbgdwarf.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
dbgstabs.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
defcmp.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
defutil.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
export.pas
finput.pas * support -Xg under linux 2008-01-20 12:12:15 +00:00
fmodule.pas * don't call DoneDebugInfo twice in tmodule.reset 2007-12-25 23:46:30 +00:00
fpccrc.pas * Add -Xg to help pages 2008-01-17 01:20:37 +00:00
fpcdefs.inc * give a build-time error when trying to cross-compile the compiler from 2007-09-27 13:22:51 +00:00
fppu.pas * fixed comparing ppu time with source time (bug 10443) 2008-01-16 18:57:43 +00:00
gendef.pas * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 2007-01-26 22:29:39 +00:00
globals.pas * Fixed bug #10511 2007-12-30 21:35:04 +00:00
globtype.pas * remove duplicate temp allocation for register saving 2007-11-18 22:10:10 +00:00
htypechk.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
impdef.pas + workaround for non-working dircache on morphos/amiga 2007-01-14 21:32:58 +00:00
import.pas
link.pas * support -Xg under linux 2008-01-20 12:12:15 +00:00
Makefile * compare stripped copies of the compiler instead of the original 2008-01-11 20:08:47 +00:00
Makefile.fpc * compare stripped copies of the compiler instead of the original 2008-01-11 20:08:47 +00:00
MPWMake
msgidx.inc * Add -Xg to help pages 2008-01-17 01:20:37 +00:00
msgtxt.inc * Add -Xg to help pages 2008-01-17 01:20:37 +00:00
nadd.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
nbas.pas * safeguard the nf_block_with_exit flag when simplifying blockn and 2007-11-04 18:33:07 +00:00
ncal.pas * typecheckpass before calling do_simplify, as the siplify methods 2008-01-06 15:30:04 +00:00
ncgadd.pas * remove registers{int/mmx/fpu} from firstpass 2007-09-26 21:12:01 +00:00
ncgbas.pas * no longer remove AsmBlockStart and AsmBlockEnd markers from 2007-09-22 19:01:44 +00:00
ncgcal.pas * fix non-x86 compile after r8558 2007-09-18 22:16:28 +00:00
ncgcnv.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
ncgcon.pas * fixed and enabled smartlinking on Darwin by adding more .reference 2007-09-28 22:48:41 +00:00
ncgflw.pas * fixed crash when compiling inlined procedures containing labels 2008-01-20 10:29:04 +00:00
ncginl.pas * fixed location.size for length node and x86_64 mul node 2007-12-15 19:27:24 +00:00
ncgld.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
ncgmat.pas * fixed/added overflow checking in generic unarminusn code + test 2007-12-25 23:52:09 +00:00
ncgmem.pas * don't range pointers converted to arrays, resolves #8191 2007-10-21 19:05:06 +00:00
ncgopt.pas * remove registers{int/mmx/fpu} from firstpass 2007-09-26 21:12:01 +00:00
ncgrtti.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
ncgset.pas * fixed range error in case node distance calculation 2008-01-06 23:18:12 +00:00
ncgutil.pas * start new objectfile for interface wrappers 2008-01-22 18:49:29 +00:00
ncnv.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
ncon.pas + constant unicodestrings 2007-12-02 20:43:08 +00:00
nflw.pas * renamed t_times to executionweight and moved it to 2007-11-25 16:38:05 +00:00
ninl.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
nld.pas * reverted 9727 and made a better fix for it 2008-01-13 13:23:19 +00:00
nmat.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
nmem.pas + constant unicodestrings 2007-12-02 20:43:08 +00:00
nobj.pas * don't allow starting new virtual trees in TP-style objects + test 2007-09-09 14:58:55 +00:00
node.pas * optimize away unnecessary implicit upcasts to int64 for subtractions 2008-01-06 23:30:19 +00:00
nopt.pas * remove registers{int/mmx/fpu} from firstpass 2007-09-26 21:12:01 +00:00
nset.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
nstate.pas
nutils.pas * fixed calculation of fpu resources 2007-10-13 19:39:25 +00:00
ogbase.pas * Add -Xg to help pages 2008-01-17 01:20:37 +00:00
ogcoff.pas * win64 -glw build fix 2008-01-20 15:13:42 +00:00
ogelf.pas * new tf_smartlink_library flag 2007-10-01 16:55:08 +00:00
oglx.pas
ogmap.pas * Rework the constexprint to allow operations from low(int64) to high(qword). 2007-06-13 07:41:18 +00:00
optbase.pas + first basically working (not all node types yet) dfa implementation determining life information 2007-05-06 21:33:39 +00:00
optcse.pas * fixed some crashes 2007-09-20 22:28:54 +00:00
optdfa.pas * fixed dfa for raise nodes 2007-07-23 20:22:36 +00:00
options.pas * don't fail on -Cg- for platforms that do not support PIC 2007-12-02 18:29:27 +00:00
opttail.pas * error message when a goto label is optimized away 2007-10-17 21:52:25 +00:00
optunrol.pas * invalid typecast 2007-09-17 19:40:36 +00:00
optutils.pas + give more sophisticated warnings about uninitalized variables when life info is available 2007-06-03 17:35:48 +00:00
owar.pas
owbase.pas * do not use F field to get TObjectReader FileName as it is freed inside openfile method 2007-05-03 23:55:55 +00:00
parabase.pas
paramgr.pas * patch from Sergei Gorelkin to return ansi/widestrings by reference 2008-01-11 22:36:50 +00:00
parser.pas + basic parsing of package files 2007-11-01 23:20:28 +00:00
pass_1.pas + support for simplifying simple inline functions down to a single 2007-03-13 22:27:55 +00:00
pass_2.pas * indenting of node names 2007-09-09 14:03:31 +00:00
pbase.pas + accept system.string, resolves #10489 2008-01-12 22:25:33 +00:00
pdecl.pas - removed some unused variables 2007-07-17 13:57:15 +00:00
pdecobj.pas * allow application of as operator only to interfaces having a guid, resolves #6797 2007-12-12 21:07:47 +00:00
pdecsub.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
pdecvar.pas * Fixed: import Address Table should contain the same data as Import Lookup Table. 2007-11-02 23:07:15 +00:00
pexports.pas * Rework the constexprint to allow operations from low(int64) to high(qword). 2007-06-13 07:41:18 +00:00
pexpr.pas * Procedures containing a non-local label should not be inlined. 2008-01-20 12:08:12 +00:00
pinline.pas * remove registers{int/mmx/fpu} from firstpass 2007-09-26 21:12:01 +00:00
pmodules.pas * Fixed compilation. 2007-11-03 09:51:45 +00:00
pp.lpi
pp.pas * move exception mask initialization to procedure compile 2007-01-07 12:24:39 +00:00
ppc68k.lpi * small m68k-linux fixes 2006-11-19 21:51:20 +00:00
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi
ppcppc.lpi + powerpc lazarus project file 2007-03-03 14:53:15 +00:00
ppcsparc.lpi + sparc lazarus project file 2007-04-05 10:22:24 +00:00
ppheap.pas
ppu.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +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 * don't give illegal expression for errorn statements. The error is already given 2007-12-23 20:57:59 +00:00
psub.pas * better detection of source file change while writing debug info 2008-01-15 21:36:58 +00:00
psystem.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
ptconst.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
ptype.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
raatt.pas + .fini section support 2007-07-28 08:40:10 +00:00
rabase.pas
rasm.pas
rautils.pas * Procedures containing a non-local label should not be inlined. 2008-01-20 12:08:12 +00:00
README
regvars.pas
rgbase.pas
rgobj.pas * fixed memory corruption in trgobj.add_to_movelist on 64 bit platforms 2007-12-25 23:39:28 +00:00
scandir.pas * enable {$push}/{$pop} in all syntax modes instead of ony in macpas 2008-01-12 16:47:46 +00:00
scanner.pas * flush pending local switch changes before evaluating ifopt 2007-12-07 18:24:57 +00:00
script.pas * fixed handling of directories with spaces for LdSupportsNoResponseFile- 2007-11-24 18:06:01 +00:00
switches.pas + forbid usage of $E on targets supporting no fpu emulation 2007-06-10 17:03:26 +00:00
symbase.pas * cleanup deleting of defs 2007-01-11 20:46:57 +00:00
symconst.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +00:00
symdef.pas * changed byte/word/longbool to be Delphi-compatible (+ similar changes 2008-01-24 21:30:55 +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 * Don't issue "Local variable is assigned but never used" warning for external variables. 2007-12-26 16:30:45 +00:00
symtype.pas * Convert guid load/save to endian safe code. 2007-06-30 21:45:20 +00:00
symutil.pas * Rework the constexprint to allow operations from low(int64) to high(qword). 2007-06-13 07:41:18 +00:00
systems.pas Adds symbian arm target. 2007-11-24 22:04:59 +00:00
tgobj.pas * for ARM CPU records must be aligned in stack depending of record size to prevent misaligned error when the record is passed as parameter in registers. It fixes tcalext* tests for ARM. 2007-06-20 20:31:06 +00:00
tokens.pas + Enable resourcestring in all modes 2006-12-18 21:25:47 +00:00
verbose.pas * optimize fixpath, findfile to not require temp ansistrings 2007-11-19 22:24:52 +00:00
version.pas * Merged 2.3 branch changes: 2007-03-04 20:16:57 +00:00
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
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