fpc/compiler
florian 8471e02e40 * call simplify after typechecking for nodes
git-svn-id: trunk@34795 -
2016-11-05 23:05:54 +00:00
..
aarch64
arm nutils.pas: Add new procedure: 2016-09-29 21:34:34 +00:00
avr * various memory reference alignment fixes 2016-09-20 21:43:19 +00:00
generic
html
i386 * various memory reference alignment fixes 2016-09-20 21:43:19 +00:00
i8086 Fix parameter loading of FPC_CHECKPOINTER to handle correctly references with offsets 2016-10-18 21:48:59 +00:00
jvm
llvm + LLVM 3.7 support in the LLVM IR writer 2016-09-20 21:44:06 +00:00
m68k m68k: cleanup of the BuildRefExpression method in the assembler reader 2016-11-05 19:58:06 +00:00
mips * Removed unused vars. 2016-09-01 20:01:54 +00:00
msg m68k: refactor of the reglist and the regpair support in the assembler reader. also added support for float register lists for FMOVEM 2016-11-05 18:53:20 +00:00
powerpc * due to the removal of addr_load_indirect also revert the changes to refaddr2str(_darwin) 2016-09-30 14:13:26 +00:00
powerpc64
ppcgen * due to the removal of addr_load_indirect also revert the changes to refaddr2str(_darwin) 2016-09-30 14:13:26 +00:00
sparc
systems atari: add tf_requires_proper_alignment to the atari target 2016-10-09 22:56:23 +00:00
utils * Added example to samplecfg, to make clear which path is meant 2016-10-16 16:50:05 +00:00
x86 * more getsupreg(...)<>/=getsupreg(...) replaced by SuperRegisterEqual which is more safe, the former could break as the register could have different register types 2016-10-20 18:32:23 +00:00
x86_64 * Removed unused vars. 2016-09-01 20:01:54 +00:00
aasmbase.pas
aasmcnst.pas + tcalo_apply_constalign option to specify that the alignment should be 2016-10-06 06:25:05 +00:00
aasmdata.pas * converted tnodeutils.InsertRuntimeInits() to the high level typed const 2016-09-07 16:09:06 +00:00
aasmdef.pas - don't apply const_align() to alignments passed to high level typed 2016-10-06 06:25:02 +00:00
aasmsym.pas
aasmtai.pas m68k: support register pair operands in assembler reader and writer, as used by some instructions (mainly DIVS/DIVU and friends) so we don't have to hack them as three operand instructions 2016-11-05 17:07:18 +00:00
aggas.pas atari: the Atari GNU AS won't tolerate .section .fpc, much like the amiga one 2016-10-03 04:06:49 +00:00
aopt.pas
aoptbase.pas * TAOptBase.RegInRef compares using SuperRegistersEqual as TAOptBase.RegInOp does for top_reg already 2016-10-16 16:35:36 +00:00
aoptcs.pas
aoptda.pas
aoptobj.pas
aoptutils.pas
assemble.pas
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas
cfidwarf.pas
cfileutl.pas
cg64f32.pas
cgbase.pas * get rid of addr_load_indirect again by having tcgx86 provide an internal implementation of both make_simple_ref() and a_load_ref_reg() so that make_direct_ref() can call the latter (and the latter the former) without fear of inifinite recursive calls due to the symbol; a_load_ref_reg() is additionally declared as "final" as a_load_ref_reg_internal() needs to be overloaded instead (which is the case for tcg8086) 2016-09-30 14:01:02 +00:00
cghlcpu.pas
cgobj.pas
cgutils.pas
cmsgs.pas
comphook.pas
compiler.pas
compinnr.inc + extension to iso mode: reset/rewrite can take a file name as a second parameter 2016-10-16 07:55:08 +00:00
comprsrc.pas
constexp.pas
COPYING.txt * updated FSF address (mantis #30198, patch by Paul Gevers) 2016-10-02 12:56:59 +00:00
cpid.pas
crefs.pas
cresstr.pas - don't apply const_align() to alignments passed to high level typed 2016-10-06 06:25:02 +00:00
cstreams.pas
cutils.pas
cwindirs.pp
dbgbase.pas
dbgdwarf.pas * emit a sizeint-sized string length for long string constants in the DWARF 2016-10-07 22:36:48 +00:00
dbgstabs.pas
dbgstabx.pas
defcmp.pas * compare floating point default parameter values bytewise instead of as 2016-10-02 12:56:49 +00:00
defutil.pas * use sizesinttype instead of ptrsinttype for the index and high parameter of 2016-10-08 13:56:24 +00:00
dirparse.pas
elfbase.pas
entfile.pas
export.pas
expunix.pas * Removed unused vars. 2016-09-01 20:01:54 +00:00
finput.pas
fmodule.pas
fpccrc.pas
fpcdefs.inc
fpcp.pas * Removed unused vars. 2016-09-01 19:55:45 +00:00
fpkg.pas
fppu.pas Remember usage of checkpointer (-gc) option: 2016-09-27 14:46:09 +00:00
gendef.pas
globals.pas huge syscall support refactor for Amiga-likes. removed large chunks of ancient duplicated code, and in general tried to make the entire thing more maintainable and cleaner. also added support for AROS EAXBase syscall convention 2016-09-03 07:57:23 +00:00
globstat.pas
globtype.pas Remember usage of checkpointer (-gc) option: 2016-09-27 14:46:09 +00:00
hlcg2ll.pas * various memory reference alignment fixes 2016-09-20 21:43:19 +00:00
hlcgobj.pas * use sizesinttype instead of ptrsinttype for the index and high parameter of 2016-10-08 13:56:24 +00:00
htypechk.pas
impdef.pas
import.pas
ldscript.pas
link.pas
macho.pas
machoutils.pas
Makefile
Makefile.fpc
MPWMake
msgidx.inc m68k: refactor of the reglist and the regpair support in the assembler reader. also added support for float register lists for FMOVEM 2016-11-05 18:53:20 +00:00
msgtxt.inc m68k: refactor of the reglist and the regpair support in the assembler reader. also added support for float register lists for FMOVEM 2016-11-05 18:53:20 +00:00
nadd.pas
nbas.pas + tempinfo flag ti_no_final_regsync which prevents that the final reg. sync. is emitted 2016-11-05 23:05:41 +00:00
ncal.pas * formatting so lazarus can handle it 2016-10-16 19:53:12 +00:00
ncgadd.pas
ncgbas.pas + tempinfo flag ti_no_final_regsync which prevents that the final reg. sync. is emitted 2016-11-05 23:05:41 +00:00
ncgcal.pas * set the correct resultdef after converting a dynamic array to an open array 2016-09-11 17:12:04 +00:00
ncgcnv.pas * make more use of nf_internal to avoid range check errors 2016-11-05 23:05:51 +00:00
ncgcon.pas + tcalo_apply_constalign option to specify that the alignment should be 2016-10-06 06:25:05 +00:00
ncgflw.pas + transform for loop into equivalent while loop during pass 1 to simplify code generation 2016-11-05 23:05:43 +00:00
ncghlmat.pas
ncginl.pas
ncgld.pas * various memory reference alignment fixes 2016-09-20 21:43:19 +00:00
ncgmat.pas
ncgmem.pas Fix parameter loading of FPC_CHECKPOINTER to handle correctly references with offsets 2016-10-18 21:48:59 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * fixed alignment for interface RTTI (patch by Alfred, mantis #30182) 2016-10-09 12:34:01 +00:00
ncgset.pas
ncgutil.pas
ncgvmt.pas * use sizeuinttype instead of ptruinttype for the array range type in the 2016-10-14 13:22:05 +00:00
ncnv.pas * make more use of nf_internal to avoid range check errors 2016-11-05 23:05:51 +00:00
ncon.pas
nflw.pas * call simplify after typechecking for nodes 2016-11-05 23:05:54 +00:00
ngenutil.pas * emit the heap and stack sizes via Tai_const.Create_int_dataptr, instead of 2016-10-07 20:58:50 +00:00
ngtcon.pas + tcalo_apply_constalign option to specify that the alignment should be 2016-10-06 06:25:05 +00:00
ninl.pas * make more use of nf_internal to avoid range check errors 2016-11-05 23:05:51 +00:00
nld.pas * make more use of nf_internal to avoid range check errors 2016-11-05 23:05:51 +00:00
nmat.pas
nmem.pas * use sizesinttype instead of ptrsinttype for the index and high parameter of 2016-10-08 13:56:24 +00:00
nobj.pas * use sizesinttype instead of ptrsinttype to refer to vInstanceSize and 2016-10-04 15:25:13 +00:00
nobjc.pas
node.pas
nopt.pas
nset.pas * fix warnings which were caused by last changes to for node generation 2016-11-05 23:05:44 +00:00
nutils.pas + extension to iso mode: reset/rewrite can take a file name as a second parameter 2016-10-16 07:55:08 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas * use .create_nil_codeptr instead of .create_pint(0) for writing the placeholder 2016-10-10 15:40:10 +00:00
objcutil.pas
ogbase.pas
ogcoff.pas
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
ogomf.pas
omfbase.pas * use OMF section names, starting with dot for the dwarf debug info for 2016-10-12 13:05:12 +00:00
optbase.pas
optconstprop.pas + do constant propagation into arguments of inline nodes if possible 2016-11-05 23:05:53 +00:00
optcse.pas
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas Remember usage of checkpointer (-gc) option: 2016-09-27 14:46:09 +00:00
optloop.pas
opttail.pas
optutils.pas
optvirt.pas
owar.pas
owbase.pas
owomflib.pas
parabase.pas
paramgr.pas
parser.pas
pass_1.pas
pass_2.pas
pbase.pas
pcp.pas
pdecl.pas * set the realname of the reused generic dummy symbol to the parsed name as the casing might differ from the generic that triggered the creation of said dummy symbol 2016-09-16 15:09:22 +00:00
pdecobj.pas * if the objecttype of the forward declaration mismatches use the objecttype previously parsed; fixes access violation of webtbf/tw11970.pp 2016-09-08 18:42:13 +00:00
pdecsub.pas * revert r34712: the behavior with the class constructors is indeed Delphi compatible. However only one class constructor/destructor per class is allowed no matter how it's named. 2016-10-13 20:11:35 +00:00
pdecvar.pas huge syscall support refactor for Amiga-likes. removed large chunks of ancient duplicated code, and in general tried to make the entire thing more maintainable and cleaner. also added support for AROS EAXBase syscall convention 2016-09-03 07:57:23 +00:00
pexports.pas
pexpr.pas * don't check for hints if we have a specialization with the same name as the to be used generic (though since the typedef would be errordef it wouldn't print anything anyway...) 2016-09-16 15:15:19 +00:00
pgentype.pas
pgenutil.pas + new overload for generate_specialization_phase1() which allows to pass a specific symbol name without the need to specify a file position 2016-09-16 15:10:51 +00:00
pinline.pas
pkgutil.pas * Removed unused vars. 2016-09-01 19:55:45 +00:00
pmodules.pas * ensure that a finalization section is parsed before the generation of specializations as otherwise specializations in such sections would result in unresolved forward declarations 2016-09-30 15:41:35 +00:00
pp.lpi
pp.pas * increase the maximum stack trace depth, when the compiler is compiled with -dEXTDEBUG 2016-09-27 15:54:00 +00:00
pparautl.pas * use sizesinttype instead of ptrsinttype for the index and high parameter of 2016-10-08 13:56:24 +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 atari: initial support for TOS syscalls 2016-10-03 23:37:30 +00:00
ppx86_64.lpi
procinfo.pas
pstatmnt.pas
psub.pas * changed the 'size' parameter of fpc_zeromem and fpc_fillmem from ptruint to sizeuint 2016-10-18 15:42:29 +00:00
psystem.pas * use sizesinttype instead of ptrsinttype for the index and high parameter of 2016-10-08 13:56:24 +00:00
ptconst.pas huge syscall support refactor for Amiga-likes. removed large chunks of ancient duplicated code, and in general tried to make the entire thing more maintainable and cleaner. also added support for AROS EAXBase syscall convention 2016-09-03 07:57:23 +00:00
ptype.pas * fix for Mantis #28753: don't return generic dummys from single_type(); ensures that parameters correctly evaluate to error defs should generic dummies be used 2016-09-16 20:40:19 +00:00
raatt.pas
rabase.pas
rasm.pas
rautils.pas m68k: support register pair operands in assembler reader and writer, as used by some instructions (mainly DIVS/DIVU and friends) so we don't have to hack them as three operand instructions 2016-11-05 17:07:18 +00:00
README.txt
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas make rgobj.uses_registers also return true, when the rg never allocated an imreg, but there were direct cpu register allocations. this at least fixes some address regvar trashing on 68k in relation to syscalls' explicit paralocs 2016-11-03 01:45:34 +00:00
scandir.pas huge syscall support refactor for Amiga-likes. removed large chunks of ancient duplicated code, and in general tried to make the entire thing more maintainable and cleaner. also added support for AROS EAXBase syscall convention 2016-09-03 07:57:23 +00:00
scanner.pas * reset c in dir_include if it will be re-read 2016-11-05 23:05:39 +00:00
script.pas
switches.pas
symbase.pas
symconst.pas atari: initial support for TOS syscalls 2016-10-03 23:37:30 +00:00
symcreat.pas
symdef.pas * use sizesinttype instead of ptrsinttype for the index and high parameter of 2016-10-08 13:56:24 +00:00
symsym.pas
symtable.pas * fix for Mantis #27349: nested classes might also reside inside records 2016-10-13 20:40:47 +00:00
symtype.pas * as it seems that UnitImportSyms stores symbols that are already freed add an additional check to tderef.build() for tdef (in addition to tsym) to find code that triggers such cases more easily 2016-09-02 15:35:17 +00:00
symutil.pas * compare floating point default parameter values bytewise instead of as 2016-10-02 12:56:49 +00:00
syscinfo.pas atari: initial support for TOS syscalls 2016-10-03 23:37:30 +00:00
systems.inc
systems.pas Enable checkpointer support for all linux systems 2016-09-21 13:20:13 +00:00
tgobj.pas
tokens.pas huge syscall support refactor for Amiga-likes. removed large chunks of ancient duplicated code, and in general tried to make the entire thing more maintainable and cleaner. also added support for AROS EAXBase syscall convention 2016-09-03 07:57:23 +00:00
verbose.pas
version.pas
widestr.pas
wpo.pas
wpobase.pas * fix warnings which were caused by last changes to for node generation 2016-11-05 23:05:44 +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