fpc/compiler
2014-02-08 21:38:23 +00:00
..
aarch64
alpha
arm Fix some internalerror codes in the ARM CG 2014-02-07 12:15:08 +00:00
avr * a_call_ref functionality cannot be implemented efficiently at code generator level, because references need specific preparations at earlier points. Moved this support to tcgcallnode and its x86 descendants, and got rid of all ifdef's around. 2014-02-03 13:28:56 +00:00
generic
html
i386 * fix modification information for bmi instructions 2014-02-08 21:38:21 +00:00
i8086 * fix modification information for bmi instructions 2014-02-08 21:38:21 +00:00
ia64
jvm * fixed indentation of stack slot allocation debug statements 2014-01-15 20:36:59 +00:00
m68k use optimized cg loading functions in 64bit compares instead of hardcoded move.ls (move.l #X,dn is 48bit long, clr.l/moveq.l is 16bit long) 2014-01-23 03:03:44 +00:00
mips * MIPS: fixed 8/16 bit arithmetic shifting to be done without using an additional register. 2014-02-08 21:13:58 +00:00
msg * Add different message for static libraary not supported 2014-01-27 22:26:29 +00:00
powerpc * use spilling_operation_type() instead of a big table to determine whether 2014-02-02 15:32:54 +00:00
powerpc64 * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
ppcgen * A_INSLWI, A_INSLWI_, A_INSRWI, A_INSRWI_ also modify operand 0 2014-02-02 15:32:00 +00:00
sparc * SPARC: r26561 caused a_op_const_reg_reg used for zero-extending 8-bit values to be optimized away. Fixed by replacing it with an explicit instruction. 2014-01-22 21:37:37 +00:00
systems * Fixed compilation for mips-linux. 2014-02-08 19:08:21 +00:00
utils * mipsel-android: Regenerated makefiles. From now the mipsel-android target can be built and used. 2014-02-07 12:37:17 +00:00
vis
x86 * fix trgx86.do_spill_replace for bmi rotating/shifting instructions 2014-02-08 21:38:23 +00:00
x86_64 * fix modification information for bmi instructions 2014-02-08 21:38:21 +00:00
aasmbase.pas
aasmdata.pas
aasmsym.pas
aasmtai.pas * fixed indentation 2013-11-10 21:25:34 +00:00
aggas.pas + Added compiler support for mipsel-android target. 2014-02-06 17:02:43 +00:00
agjasmin.pas pass new asm extra opt using -ao option 2014-01-21 00:16:53 +00:00
aopt.pas
aoptbase.pas * simplified RegInInstruction() and fixed range errors 2013-11-06 10:46:22 +00:00
aoptcs.pas
aoptda.pas
aoptobj.pas Rerun peephole optimizers on the whole block 2014-01-31 23:21:52 +00:00
asmutils.pas
assemble.pas pass new asm extra opt using -ao option 2014-01-21 00:16:53 +00:00
browcol.pas Avoid infinite recursion on generic classes for IDE browser 2013-11-12 16:39:20 +00:00
bsdcompile
catch.pas
ccharset.pas
cclasses.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
cfidwarf.pas
cfileutl.pas Print out command line before running it with -vx option 2014-01-12 23:06:19 +00:00
cg64f32.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
cgbase.pas * fold mov/lea/mov as well if possible 2013-11-01 19:01:29 +00:00
cghlcpu.pas + override g_save_registers() and g_restore_registers() with do-nothing versions 2013-11-10 21:33:38 +00:00
cgobj.pas * a_call_ref functionality cannot be implemented efficiently at code generator level, because references need specific preparations at earlier points. Moved this support to tcgcallnode and its x86 descendants, and got rid of all ifdef's around. 2014-02-03 13:28:56 +00:00
cgutils.pas no longer define a segment field for m68k 2014-01-15 02:06:10 +00:00
cmsgs.pas
comphook.pas
compiler.pas
compinnr.inc
comprsrc.pas
constexp.pas * make use of the noreturn directive for internalerror 2013-11-10 09:01:03 +00:00
COPYING.txt
cpid.pas
crefs.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
cresstr.pas compiler: remove RST writer 2014-01-19 04:40:41 +00:00
cstreams.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
cutils.pas
cwindirs.pp
dbgbase.pas
dbgdwarf.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
dbgstabs.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
dbgstabx.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
defcmp.pas Fix for Mantis #25132 2013-10-25 19:50:56 +00:00
defutil.pas
dirparse.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
elfbase.pas
export.pas
expunix.pas
finput.pas
fmodule.pas
fpccrc.pas
fpcdefs.inc * Enabled safecall for mips. 2014-02-07 14:12:33 +00:00
fppu.pas
gendef.pas
globals.pas Add new global asmextraopt variable 2014-01-21 00:14:49 +00:00
globstat.pas
globtype.pas + cs_userbp optimizer switch, so on x86-64 the compiler can make use of rbp if it is not needed as frame pointer 2014-01-30 19:44:17 +00:00
hlcg2ll.pas * a_call_ref functionality cannot be implemented efficiently at code generator level, because references need specific preparations at earlier points. Moved this support to tcgcallnode and its x86 descendants, and got rid of all ifdef's around. 2014-02-03 13:28:56 +00:00
hlcgobj.pas + Added compiler support for mipsel-android target. 2014-02-06 17:02:43 +00:00
htypechk.pas + nf_addr_taken: it marks nodes which address is taken 2014-02-07 20:40:42 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas Use new static library not supproted message 2014-01-27 22:29:07 +00:00
macho.pas
machoutils.pas
Makefile * mipsel-android: Regenerated makefiles. From now the mipsel-android target can be built and used. 2014-02-07 12:37:17 +00:00
Makefile.fpc + OPTNEW Makefile parameter: when running a native cycle, this allows to pass a parameter only to the new generated compiler 2014-01-18 10:19:16 +00:00
MPWMake
msgidx.inc regenerated after: Add different message for static libraary not supported 2014-01-27 22:28:29 +00:00
msgtxt.inc regenerated after: Add different message for static libraary not supported 2014-01-27 22:28:29 +00:00
nadd.pas * When inlining currency (ordinal) multiplication, change resultdef to int64, in order to be consistent with behavior of generic handling. Fixes compilation faliure after r26500, Mantis #25565. 2014-01-20 17:16:11 +00:00
nbas.pas * run CheckAndWarn to get proper locations for warnings about uninitialized variables 2013-12-01 17:01:51 +00:00
ncal.pas + nf_addr_taken: it marks nodes which address is taken 2014-02-07 20:40:42 +00:00
ncgadd.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
ncgbas.pas * 16-bit and 8-bit ALU fixes in tcgtempdeletenode.pass_generate_code 2013-12-23 14:09:28 +00:00
ncgcal.pas * a_call_ref functionality cannot be implemented efficiently at code generator level, because references need specific preparations at earlier points. Moved this support to tcgcallnode and its x86 descendants, and got rid of all ifdef's around. 2014-02-03 13:28:56 +00:00
ncgcnv.pas Don't do ARM FoldShiftLdrStr peephole optimization if there's an offset in the reference. 2014-02-01 13:29:35 +00:00
ncgcon.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
ncgflw.pas * Fix code generation of for-loops. Keeping a copy of to-value in register during pass 2 is basically a hack, because register may be destroyed if an exception is raised and handled in loop body. This went unnoticed because generic setjmp-based exception handling is restoring registers to the state at entry to try block, and Win64 SEH also has some register-preserving features. However, for Win32 SEH it is not true. 2013-12-07 09:18:18 +00:00
ncginl.pas * 16/8-bit ALU fix for 64-bit pred/succ after r26580 2014-01-26 15:44:58 +00:00
ncgld.pas * fixed the conversion and assignment to the 64-bit boolean types on the i8086 2013-12-31 17:18:20 +00:00
ncgmat.pas * x86 and SPARC: fixed handling 64-bit (qwordbool) values in tcgnotnode (partial fix for Mantis #25255). 2014-01-02 10:29:44 +00:00
ncgmem.pas * fix tsubscriptnode to handle left.location being an fpu or mm register as well. 2014-02-01 13:08:21 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
ncgrtti.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
ncgset.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
ncgutil.pas * gen_alloc_symtable: don't use current_procinfo.procdef, the necessary procdef is passed in 'pd' parameter. 2014-02-03 10:21:56 +00:00
ncgvmt.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
ncnv.pas * make_not_regable is a matter of code generation so do it in pass_1 2014-02-01 13:08:28 +00:00
ncon.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
nflw.pas * set pi_uses_exceptions flag only if the try...finally frame is not an implicit frame 2014-02-08 16:43:23 +00:00
ngenutil.pas + support iso pascal like program parameters in iso mode 2014-01-12 20:17:51 +00:00
ngtcon.pas * set the code page of rawbytestring typed constants to the same value as 2014-01-05 18:26:10 +00:00
ninl.pas * fixes handling of typed files in iso mode 2014-01-12 20:17:48 +00:00
nld.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
nmat.pas + simplify shl/shr x, if (x mod bitsizeof(left))=0 2014-01-30 17:34:33 +00:00
nmem.pas * fix tsubscriptnode to handle left.location being an fpu or mm register as well. 2014-02-01 13:08:21 +00:00
nobj.pas
nobjc.pas
node.pas + nf_addr_taken: it marks nodes which address is taken 2014-02-07 20:40:42 +00:00
nopt.pas
nset.pas + implement tcasenode.pass_typecheck 2014-02-01 13:08:26 +00:00
nstate.pas
nutils.pas
objcdef.pas
objcgutl.pas * changed some random data label names to match the label names outputted by 2013-12-31 00:28:46 +00:00
objcutil.pas
ogbase.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
ogcoff.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
ogelf.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
optbase.pas * run CheckAndWarn to get proper locations for warnings about uninitialized variables 2013-12-01 17:01:51 +00:00
optconstprop.pas * propagate constants into the header of a for loop 2013-12-31 13:16:09 +00:00
optcse.pas + nf_addr_taken: it marks nodes which address is taken 2014-02-07 20:40:42 +00:00
optdead.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
optdeadstore.pas * be more careful when removing dead stores 2013-12-28 20:19:42 +00:00
optdfa.pas * take care of tempinitcode when creating def information for tempcreatenodes 2014-01-25 09:40:51 +00:00
options.pas + Added compiler support for mipsel-android target. 2014-02-06 17:02:43 +00:00
optloop.pas + nf_addr_taken: it marks nodes which address is taken 2014-02-07 20:40:42 +00:00
opttail.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
optutils.pas * set successor node for load nodes as well, they can be generated when inlining 2013-12-28 20:19:38 +00:00
optvirt.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
owar.pas
owbase.pas
parabase.pas
paramgr.pas * Force managed types to be always returned in parameters, independent of target (primitive types were already handled that way; the patch affects small records with fields of managed types). 2013-12-13 19:54:46 +00:00
parser.pas
pass_1.pas * indention and new line fixes 2013-11-06 21:10:28 +00:00
pass_2.pas
pbase.pas
pdecl.pas compiler: fix error message (was error message about resourcestring for property) 2014-01-05 07:12:41 +00:00
pdecobj.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
pdecsub.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
pdecvar.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
pexports.pas
pexpr.pas * fixed formatting 2014-01-28 20:14:10 +00:00
pgenutil.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
pinline.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
pmodules.pas * avoid compiler warning about uninitialized variable 2014-01-12 21:21:56 +00:00
pp.lpi
pp.pas
pparautl.pas * add $parentfp as a first parameter on i8086, instead of last. This makes 2013-10-18 21:37:06 +00:00
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
ppx86_64.lpi
procinfo.pas
pstatmnt.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
psub.pas * Changed passing of hidden parameters to constructors of class-style objects: VMT is always passed in the first ('self') parameter, and the second one ('vmt', although this name is now misleading) contains flag specifying the constructor behavior and meaning of 'self'. Together with r26656 this removes methodpointer sharing between two parameter node trees, it becomes possible not to put methodpointer into temp, but use node tree below 'self' parameter to do virtual calls. This also matches behavior of Delphi. 2014-02-06 12:26:47 +00:00
psystem.pas
ptconst.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
ptype.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
raatt.pas
rabase.pas
rasm.pas
rautils.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
README.txt
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas + replace registers to spill in mov instructions and convert them into ldr/str 2014-02-05 18:19:41 +00:00
scandir.pas compiler: load binary unicode mappings in cpavailable() call instead of separate loadbinarycp() call 2014-01-04 16:42:20 +00:00
scanner.pas * some minor formatting fixes 2014-01-29 19:26:17 +00:00
script.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
switches.pas
symbase.pas
symconst.pas + noreturn directive 2013-11-10 09:00:59 +00:00
symcreat.pas
symdef.pas * Changed tabstractprocdef.address_size to return the def, which can be used to get other properties like size and alignment. Removes one of i8086 ifdef's. 2014-02-03 10:47:54 +00:00
symnot.pas
symsym.pas * moved comments in from of fields for better readability 2014-01-12 20:17:56 +00:00
symtable.pas * don't crash when searching for a type helper in an anonymous array (or 2014-01-14 19:52:20 +00:00
symtype.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
symutil.pas
systems.inc + Added compiler support for mipsel-android target. 2014-02-06 17:02:43 +00:00
systems.pas + Added compiler support for mipsel-android target. 2014-02-06 17:02:43 +00:00
tgobj.pas
tokens.pas + noreturn directive 2013-11-10 09:00:59 +00:00
verbose.pas * make use of the noreturn directive for internalerror 2013-11-10 09:01:03 +00:00
version.pas
widestr.pas compiler: remove big codepage maps from the compiler executable - they will be loaded from -FM path when needed 2014-01-05 06:06:18 +00:00
wpo.pas
wpobase.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
wpoinfo.pas

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