fpc/compiler
florian 109612b7e1 * correctly load 32 bit values on sparc64
git-svn-id: trunk@36644 -
2017-07-04 20:52:47 +00:00
..
aarch64 * only take into account the location of the parameter at the callee side to 2017-05-21 20:17:11 +00:00
arm Restricted MlaCmp>Mlas optimization to only work in ARM mode. 2017-06-26 18:14:46 +00:00
avr * fixed avr multiplication after r36344 2017-05-29 12:42:02 +00:00
generic
html
i386 + TX86AsmOptimizer.OptPass1OP 2017-05-28 13:49:43 +00:00
i8086 Generate error if stack size of a procedure/function is bigger than globally allocated stack size 2017-06-16 07:47:17 +00:00
jvm * rework InsertInitFinalTable a bit more so that the list of init/fini entries does not need to be generated twice for AVR 2017-05-23 19:58:39 +00:00
llvm + inline trunc() support for the LLVM backend when using -Oofastmath (because 2017-05-20 19:28:15 +00:00
m68k m68k: do not internalerror on localsize < 0. this condition is handled elsewhere in the compiler properly, so we just let it through 2017-06-29 00:11:19 +00:00
mips * only take into account the location of the parameter at the callee side to 2017-05-21 20:17:11 +00:00
msg + set the code page for errorct.msg (Catalan) to Windows 1252 2017-06-08 20:48:58 +00:00
powerpc * only take into account the location of the parameter at the callee side to 2017-05-21 20:17:11 +00:00
powerpc64 * only take into account the location of the parameter at the callee side to 2017-05-21 20:17:11 +00:00
ppcgen morphos: added legacy GNU AS support for the ancient AS version, which is still bundled as default in the SDK. switches off named sections support in the assembler generator 2017-06-11 23:36:40 +00:00
sparc + fccX registers 2017-07-03 20:48:56 +00:00
sparc64 + fccX registers 2017-07-03 20:48:56 +00:00
sparcgen * correctly load 32 bit values on sparc64 2017-07-04 20:52:47 +00:00
systems m68k: also have tf_safecall_clearstack flag defined for Linux 2017-06-28 23:55:17 +00:00
utils * Makefiles regenerated 2017-06-18 21:06:34 +00:00
x86 + TX86AsmOptimizer.OptPass1OP 2017-05-28 13:49:43 +00:00
x86_64 + TX86AsmOptimizer.OptPass1OP 2017-05-28 13:49:43 +00:00
aasmbase.pas * add ability to disable the generation of an indirect symbol if needed (useful if that's done by the constant builder) 2017-01-29 17:42:00 +00:00
aasmcnst.pas * properly align unicode- and ansistring constants 2017-06-19 21:18:03 +00:00
aasmdata.pas * keep track of the sections that are created in the asmlists 2017-02-10 14:38:53 +00:00
aasmdef.pas * add ability to disable the generation of an indirect symbol if needed (useful if that's done by the constant builder) 2017-01-29 17:42:00 +00:00
aasmsym.pas
aasmtai.pas * keep track of the sections that are created in the asmlists 2017-02-10 14:38:53 +00:00
aggas.pas * Use .rodata and .data.rel.ro sections for Android with PIC. 2017-05-22 13:40:48 +00:00
aopt.pas * removed unused units 2017-05-09 19:53:14 +00:00
aoptbase.pas * removed unused units 2017-05-09 19:53:14 +00:00
aoptda.pas * removed unused units 2017-05-09 19:53:14 +00:00
aoptobj.pas * removed unused units 2017-05-09 19:53:14 +00:00
aoptutils.pas * unified usage of MatchOpType 2017-05-07 16:18:33 +00:00
assemble.pas * removed unused units 2017-05-09 19:53:14 +00:00
blockutl.pas * removed unused units 2017-05-09 19:53:14 +00:00
browcol.pas
catch.pas
ccharset.pas
cclasses.pas + TLinkedList.RemoveAll 2017-05-25 12:44:32 +00:00
cfidwarf.pas
cfileutl.pas
cg64f32.pas + implemented the in_neg_assign_x and in_not_assign_x inline nodes, which will 2017-04-07 16:02:40 +00:00
cgbase.pas + SPARC64 cpugas unit 2017-06-10 11:24:55 +00:00
cghlcpu.pas
cgobj.pas * removed unused units 2017-05-09 19:53:14 +00:00
cgutils.pas
cmsgs.pas + implemented support for codepage aware compiler messages. It can be enabled 2017-06-08 16:11:33 +00:00
comphook.pas
compiler.pas + use fpwidestring in the compiler once again on unix-like hosts. The 2017-06-08 23:53:08 +00:00
compinnr.pas * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
comprsrc.pas
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas * removed unused units 2017-05-09 19:53:14 +00:00
cstreams.pas
cutils.pas + align(<int64>,<int64>) and align(<qword>,<qword>), resolves an issue reported on the mailing list with large records 2017-03-26 09:35:56 +00:00
cwindirs.pp
dbgbase.pas * removed unused units 2017-05-09 19:53:14 +00:00
dbgdwarf.pas
dbgstabs.pas
dbgstabx.pas
defcmp.pas * fix for Mantis #31756: have array constructors prefer open array parameters instead of dynamic array parameters for backwards compatibility 2017-05-10 21:01:23 +00:00
defutil.pas + added helper function are_equal_ints() 2017-04-10 13:22:50 +00:00
dirparse.pas - disable -Ooregvar for the LLVM-based x86-64 code generator, as it causes 2016-12-04 11:15:12 +00:00
elfbase.pas
entfile.pas fixed zipinstall after r36418 2017-06-04 23:11:51 +00:00
export.pas * removed unused units 2017-05-09 19:53:14 +00:00
expunix.pas * removed unused units 2017-05-09 19:53:14 +00:00
finput.pas
fmodule.pas * removed unused units 2017-05-09 19:53:14 +00:00
fpccrc.pas
fpcdefs.inc m68k: enable inlined get_frame for m68k 2017-06-22 17:43:24 +00:00
fpcp.pas * removed unused units 2017-05-09 19:53:14 +00:00
fpkg.pas
fppu.pas * write full path name when ppu crc checks fail/conflict (patch by 2017-04-17 20:42:03 +00:00
gendef.pas
globals.pas + basics for sparc64 support, we continue to use the name "sparc" for sparc32, both sparc are identified by sparcgen (dirs, defines etc.) 2017-05-30 21:17:17 +00:00
globstat.pas
globtype.pas * fixed spelling: fpc_mode -> gpc_mode 2017-07-03 20:48:53 +00:00
hlcg2ll.pas * removed unused units 2017-05-09 19:53:14 +00:00
hlcgobj.pas * removed unused units 2017-05-09 19:53:14 +00:00
htypechk.pas * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
impdef.pas
import.pas * removed unused units 2017-05-09 19:53:14 +00:00
ldscript.pas
link.pas * removed unused units 2017-05-09 19:53:14 +00:00
macho.pas
machoutils.pas
Makefile Regenerated after: sparc and sparc64 also need -Fisparcgen, because this directory contains include files 2017-06-01 13:43:43 +00:00
Makefile.fpc sparc and sparc64 also need -Fisparcgen, because this directory contains include files 2017-06-01 13:42:35 +00:00
MPWMake
msgidx.inc Regenerated files after: Add help for second argument to -Ch option, -Chx,y y is max heap size 2017-05-19 21:27:43 +00:00
msgtxt.inc + support the codepage directive in the msg2inc converter util 2017-06-08 15:46:30 +00:00
nadd.pas made it possible to override the decision from the cgs, if a certain muln needs a helper 2017-05-26 18:42:21 +00:00
nbas.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncal.pas * real constants should be propagated during inline expanding 2017-05-21 08:34:47 +00:00
ncgadd.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncgbas.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncgcal.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncgcnv.pas + support for the different flag registers of sparc 2017-07-03 20:49:05 +00:00
ncgcon.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncgflw.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncghlmat.pas
ncginl.pas + enable support for a processor specific frac function 2017-05-21 11:12:59 +00:00
ncgld.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncgmat.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncgmem.pas * avoid range check errors on avr 2017-05-28 08:59:51 +00:00
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncgopt.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncgrtti.pas * ncgrtti has to use target pointer sizes, so changed SizeOf(PtrInt) into SizeOf(PInt), should fix #31964 2017-06-04 19:57:46 +00:00
ncgset.pas * more range check errors on 8 bit CPUs fixed 2017-05-28 08:59:55 +00:00
ncgutil.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncgvmt.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncnv.pas * ttypeconvnode.typecheck_arrayconstructor_to_dynarray: the assignment node of the temp array to the resulting array always needs to exist, so remove the assigned() check 2017-05-18 20:07:57 +00:00
ncon.pas * removed unused units 2017-05-09 19:53:14 +00:00
nflw.pas * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
ngenutil.pas * ngenutil.tnodeutils.sym_maybe_initialize: don't use "is" operator, but corresponding is_* functions 2017-06-29 18:51:35 +00:00
ngtcon.pas * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
ninl.pas * initialize datatemp 2017-05-23 19:27:08 +00:00
nld.pas * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
nmat.pas * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
nmem.pas * removed unused units 2017-05-09 19:53:14 +00:00
nobj.pas * removed unused units 2017-05-09 19:53:14 +00:00
nobjc.pas * removed unused units 2017-05-09 19:53:14 +00:00
node.pas - removed some dataconstn remenants 2017-01-16 21:27:20 +00:00
nopt.pas * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
nset.pas * removed unused units 2017-05-09 19:53:14 +00:00
nutils.pas * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
objcasm.pas
objcdef.pas * removed unused units 2017-05-09 19:53:14 +00:00
objcgutl.pas
objcutil.pas * removed unused units 2017-05-09 19:53:14 +00:00
ogbase.pas + correctly handle COMDAT sections in COFF files (at least as long as the COMDAT selection isn't IMAGE_COMDAT_SELECT_ASSOCIATIVE or IMAGE_COMDAT_SELECT_EXACT_MATCH), fixes the .refptr problems mentioned in Mantis #30614 2017-05-12 15:57:31 +00:00
ogcoff.pas + correctly handle COMDAT sections in COFF files (at least as long as the COMDAT selection isn't IMAGE_COMDAT_SELECT_ASSOCIATIVE or IMAGE_COMDAT_SELECT_EXACT_MATCH), fixes the .refptr problems mentioned in Mantis #30614 2017-05-12 15:57:31 +00:00
ogelf.pas * removed unused units 2017-05-09 19:53:14 +00:00
oglx.pas
ogmacho.pas
ogmap.pas * removed unused units 2017-05-09 19:53:14 +00:00
ognlm.pas
ogomf.pas + write name of segment/group which is too large 2017-02-19 19:15:18 +00:00
omfbase.pas * removed unused units 2017-05-09 19:53:14 +00:00
optbase.pas
optconstprop.pas * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
optcse.pas * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
optdead.pas * removed unused units 2017-05-09 19:53:14 +00:00
optdeadstore.pas * removed unused units 2017-05-09 19:53:14 +00:00
optdfa.pas * removed unused units 2017-05-09 19:53:14 +00:00
options.pas morphos/amiga/atari: fixed making vlink default based on the host platform 2017-06-11 23:33:11 +00:00
optloadmodifystore.pas fix a typo to hopefully fix the build 2017-05-23 21:13:00 +00:00
optloop.pas * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
opttail.pas
optutils.pas
optvirt.pas * removed unused units 2017-05-09 19:53:14 +00:00
owar.pas
owbase.pas
owomflib.pas * removed unused units 2017-05-09 19:53:14 +00:00
parabase.pas * fix compilation of LLVM backend (mantis #31794) 2017-05-19 21:52:49 +00:00
paramgr.pas * removed unused units 2017-05-09 19:53:14 +00:00
parser.pas * removed unused units 2017-05-09 19:53:14 +00:00
pass_1.pas * removed unused units 2017-05-09 19:53:14 +00:00
pass_2.pas * removed unused units 2017-05-09 19:53:14 +00:00
pbase.pas * removed unused units 2017-05-09 19:53:14 +00:00
pcp.pas
pdecl.pas * also add a generic dummy symbol to the current module's dummy symbols after it had been parsed 2017-06-09 14:31:20 +00:00
pdecobj.pas * removed unused units 2017-05-09 19:53:14 +00:00
pdecsub.pas * removed unused units 2017-05-09 19:53:14 +00:00
pdecvar.pas * insert symbol only once 2017-06-30 15:59:33 +00:00
pexports.pas
pexpr.pas * fix for Mantis #31973: resolve dummy symbols earlier and print a nice error message if a generic dummy could not be resolved to an ordinary symbol 2017-06-09 14:41:26 +00:00
pgentype.pas
pgenutil.pas * move code to add a symbol to the current module's generic dummy symbols into a new function pgenutil.add_generic_dummysym() 2017-06-09 14:30:23 +00:00
pinline.pas * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
pkgutil.pas * removed unused units 2017-05-09 19:53:14 +00:00
pmodules.pas * fix for Mantis #31795: append a $ to internal functions init, finalize, init_implicit and finalize_implicit as their section names otherwise look the same as those of user declared functions with the same name 2017-05-12 13:32:37 +00:00
pp.lpi - removed missing file from project 2017-04-30 20:48:35 +00:00
pp.pas + basics for sparc64 support, we continue to use the name "sparc" for sparc32, both sparc are identified by sparcgen (dirs, defines etc.) 2017-05-30 21:17:17 +00:00
pparautl.pas
ppc68k.lpi
ppc8086.lpi * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc64.lpi + basics for sparc64 support, we continue to use the name "sparc" for sparc32, both sparc are identified by sparcgen (dirs, defines etc.) 2017-05-30 21:17:17 +00:00
ppcsparc.lpi + basics for sparc64 support, we continue to use the name "sparc" for sparc32, both sparc are identified by sparcgen (dirs, defines etc.) 2017-05-30 21:17:17 +00:00
ppheap.pas
ppu.pas * avoid range check errors with absolute symbols for cpus where addresses are bigger than the registers 2017-05-28 08:59:53 +00:00
ppx86_64.lpi
procinfo.pas * removed unused units 2017-05-09 19:53:14 +00:00
pstatmnt.pas * removed unused units 2017-05-09 19:53:14 +00:00
psub.pas * fix for Mantis #31945: two fixes for nested routines inside generic methods 2017-06-09 15:46:10 +00:00
psystem.pas * create intern types for sparc64 2017-06-05 21:32:13 +00:00
ptconst.pas * removed unused units 2017-05-09 19:53:14 +00:00
ptype.pas * removed unused units 2017-05-09 19:53:14 +00:00
raatt.pas * fixed check to determine whether a record parameter can be subscripted 2017-04-26 19:43:35 +00:00
rabase.pas
rasm.pas * removed unused units 2017-05-09 19:53:14 +00:00
rautils.pas * properly support accepting register parameters of assembler routines in 2017-05-21 20:17:15 +00:00
README.txt
rescmn.pas
rgbase.pas + added individual bits of the x86 flags register as subregisters 2017-04-26 13:52:52 +00:00
rgobj.pas * avoid spill coalesce of registers with itself, resolves issue #31926 2017-05-28 08:59:57 +00:00
scandir.pas atari: enable apptype directive, and change exe extension when compiling a GUI app 2016-12-30 10:27:27 +00:00
scanner.pas Revert revision 36436 from trunk. Final fix for issue #31675. 2017-06-07 21:06:54 +00:00
script.pas * fix some more occured->occured 2016-12-13 12:55:32 +00:00
switches.pas
symbase.pas
symconst.pas * ncgrtti has to use target pointer sizes, so changed SizeOf(PtrInt) into SizeOf(PInt), should fix #31964 2017-06-04 19:57:46 +00:00
symcreat.pas * removed unused units 2017-05-09 19:53:14 +00:00
symdef.pas * move code to add a symbol to the current module's generic dummy symbols into a new function pgenutil.add_generic_dummysym() 2017-06-09 14:30:23 +00:00
symsym.pas * avoid range check errors with absolute symbols for cpus where addresses are bigger than the registers 2017-05-28 08:59:53 +00:00
symtable.pas Revert revision 36436 from trunk. Final fix for issue #31675. 2017-06-07 21:06:54 +00:00
symtype.pas * removed unused units 2017-05-09 19:53:14 +00:00
symutil.pas * removed unused units 2017-05-09 19:53:14 +00:00
syscinfo.pas * removed unused units 2017-05-09 19:53:14 +00:00
systems.inc morphos: added legacy GNU AS support for the ancient AS version, which is still bundled as default in the SDK. switches off named sections support in the assembler generator 2017-06-11 23:36:40 +00:00
systems.pas * SPARC64 uses pascal startup code 2017-06-05 21:30:22 +00:00
tgobj.pas * removed unused units 2017-05-09 19:53:14 +00:00
tokens.pas * symtable.pas: 2017-02-18 19:27:53 +00:00
verbose.pas + implemented support for codepage aware compiler messages. It can be enabled 2017-06-08 16:11:33 +00:00
version.pas + support sparc64 as host/source cpu 2017-06-18 21:06:29 +00:00
widestr.pas
wpo.pas
wpobase.pas
wpoinfo.pas * removed unused units 2017-05-09 19:53:14 +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