fpc/compiler
Károly Balogh 657aa06360 arm: arm-aros syscall support
git-svn-id: trunk@34809 -
2016-11-06 14:31:42 +00:00
..
aarch64 * Delete regvars unit. 2016-11-06 14:01:39 +00:00
arm arm: arm-aros syscall support 2016-11-06 14:31:42 +00:00
avr * Delete regvars unit. 2016-11-06 14:01:39 +00:00
generic
html
i386 * refactored syscall types for unified naming,first bits of ARM AROS syscall support 2016-11-06 12:41:56 +00:00
i8086 Fix parameter loading of FPC_CHECKPOINTER to handle correctly references with offsets 2016-10-18 21:48:59 +00:00
jvm * changed ttemp*node.tempinfo^.flags to a private field, and added setters 2016-08-21 14:23:09 +00:00
llvm + LLVM 3.7 support in the LLVM IR writer 2016-09-20 21:44:06 +00:00
m68k * Delete regvars unit. 2016-11-06 14:01:39 +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 * Delete regvars unit. 2016-11-06 14:01:39 +00:00
powerpc64 * Delete regvars unit. 2016-11-06 14:01:39 +00:00
ppcgen * Delete regvars unit. 2016-11-06 14:01:39 +00:00
sparc - removed default value of _typ parameter of TAsmData.(Weak)RefAsmSymbol(): 2016-08-05 07:09:16 +00:00
systems AROS: added arm-aros target to compiler and fpcmake 2016-11-06 10:51:45 +00:00
utils * refactored syscall types for unified naming,first bits of ARM AROS syscall support 2016-11-06 12:41:56 +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 * automatically generate necessary indirect symbols when a new assembler 2016-07-20 20:53:03 +00:00
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 Reset class fields FList and FHashList to nil after Destroy call 2016-07-06 06:14:37 +00:00
cfidwarf.pas
cfileutl.pas Rectify display of shell command, do it if -vx option is used even without -vu 2016-08-28 13:02:34 +00:00
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 - removed default value of _typ parameter of TAsmData.(Weak)RefAsmSymbol(): 2016-08-05 07:09:16 +00:00
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 * don't write or reference debug information for a unit if it belongs to a/another package 2016-08-26 15:09:24 +00:00
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 * don't write or reference debug information for a unit if it belongs to a/another package 2016-08-26 15:09:24 +00:00
dbgstabx.pas - removed default value of _typ parameter of TAsmData.(Weak)RefAsmSymbol(): 2016-08-05 07:09:16 +00:00
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 Add a mechanism to keep track of assembler symbols that either publicly provided by a unit or used by a unit and that are not really baked by a Pascal symbol (e.g. public function aliases, RTTI & VMT symbol). 2016-07-22 13:08:32 +00:00
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 * changed ttemp*node.tempinfo^.flags to a private field, and added setters 2016-08-21 14:23:09 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas
macho.pas
machoutils.pas
Makefile Regenerated after: Fix fullcycle by setting EXCLUDE_80BIT_TARGETS to 1 if 80bit-real is not supported by current source CPU 2016-08-11 13:31:07 +00:00
Makefile.fpc Fix fullcycle by setting EXCLUDE_80BIT_TARGETS to 1 if 80bit-real is not supported by current source CPU 2016-08-11 13:25:24 +00:00
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 * set nf_internal for nodes being generated by constant folding 2016-11-05 23:06:03 +00:00
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 * better execution weighting for while loops: the condition must be evaluated with an increased execution weight as well 2016-11-05 23:06:01 +00:00
ncghlmat.pas
ncginl.pas * set the alignment resulting from an aligned() call to the actual natural 2016-08-13 14:47:26 +00:00
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 * left has been forced into a register of size uopdef a few statements 2016-07-14 15:20:53 +00:00
ncgutil.pas * Delete regvars unit. 2016-11-06 14:01:39 +00:00
ncgvmt.pas * use sizeuinttype instead of ptruinttype for the array range type in the 2016-10-14 13:22:05 +00:00
ncnv.pas * type conversions of constants require that unneeded bits are cut off 2016-11-05 23:05:58 +00:00
ncon.pas - removed tdataconstnode, as it is no longer used and is not type safe. 2016-07-19 14:30:42 +00:00
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 * "inherit" the nf_internal flag in tinlinenode.getaddsub_for_incdec 2016-11-05 23:06:06 +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 + AT_METADATA symbol type for data that is unrelated to the program 2016-07-19 11:57:31 +00:00
oglx.pas
ogmacho.pas + AT_METADATA symbol type for data that is unrelated to the program 2016-07-19 11:57:31 +00:00
ogmap.pas
ognlm.pas
ogomf.pas + added an i8086-embedded target support to the compiler (RTL and makefile 2016-06-17 19:15:24 +00:00
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 * changed ttemp*node.tempinfo^.flags to a private field, and added setters 2016-08-21 14:23:09 +00:00
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 * also specify sret attribute at the caller side 2016-08-13 14:47:42 +00:00
paramgr.pas
parser.pas arm: arm-aros syscall support 2016-11-06 14:31:42 +00:00
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 arm: arm-aros syscall support 2016-11-06 14:31:42 +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 + added an i8086-embedded target support to the compiler (RTL and makefile 2016-06-17 19:15:24 +00:00
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas Always write filename, truncate directory part if needed 2016-08-21 22:24:07 +00:00
ppu.pas arm: arm-aros syscall support 2016-11-06 14:31:42 +00:00
ppx86_64.lpi
procinfo.pas
pstatmnt.pas
psub.pas * Delete regvars unit. 2016-11-06 14:01:39 +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 - removed default value of _typ parameter of TAsmData.(Weak)RefAsmSymbol(): 2016-08-05 07:09:16 +00:00
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
rescmn.pas
rgbase.pas
rgobj.pas * write more information into the interference graph 2016-11-05 23:06:04 +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 * refactored syscall types for unified naming,first bits of ARM AROS syscall support 2016-11-06 12:41:56 +00:00
symcreat.pas * simply disable warnings rather than initialise the function result in 2016-07-15 14:35:52 +00:00
symdef.pas * use sizesinttype instead of ptrsinttype for the index and high parameter of 2016-10-08 13:56:24 +00:00
symsym.pas - removed tabstractnormalvarsym.currentregloc: the new location will 2016-07-08 07:46:51 +00:00
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 * refactored syscall types for unified naming,first bits of ARM AROS syscall support 2016-11-06 12:41:56 +00:00
systems.inc AROS: added arm-aros target to compiler and fpcmake 2016-11-06 10:51:45 +00:00
systems.pas Enable checkpointer support for all linux systems 2016-09-21 13:20:13 +00:00
tgobj.pas
tokens.pas * refactored syscall types for unified naming,first bits of ARM AROS syscall support 2016-11-06 12:41:56 +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