fpc/compiler
marco f0042a4719 * vcmppd hardcoded primitives like vcmpeqpd.
* required increasing maxinfolen to 9 

git-svn-id: trunk@38404 -
2018-03-03 23:32:54 +00:00
..
aarch64 * another compilation fix 2018-02-11 18:39:49 +00:00
arm + support fmrrd/fmdrr, resolves #32398 2018-02-17 16:32:11 +00:00
avr * patch by Christo Crause: more descriptive error message when BRxx destination out of reach 2018-02-25 15:31:17 +00:00
generic
html
i386 * vcmppd hardcoded primitives like vcmpeqpd. 2018-03-03 23:32:54 +00:00
i8086 * vcmppd hardcoded primitives like vcmpeqpd. 2018-03-03 23:32:54 +00:00
jvm + add putboolean and getboolean convenience methods to tentfile 2018-01-14 21:36:02 +00:00
llvm * fix compilation for llvm as proposed by Karl-Michael Schindler, resolves #31969 2017-12-28 14:57:35 +00:00
m68k m68k: fix build after r38206 2018-02-11 18:20:51 +00:00
mips * factored out check to determine whether a variable can be subscripted in 2018-01-01 14:29:21 +00:00
msg + support concatenation of references in x86 intel syntax inline asm: 2018-02-26 17:17:47 +00:00
powerpc * factored out check to determine whether a variable can be subscripted in 2018-01-01 14:29:21 +00:00
powerpc64 * factored out check to determine whether a variable can be subscripted in 2018-01-01 14:29:21 +00:00
ppcgen Add clang as assembler for powerpc-darwin (powerpc64 is apparently not yet supported for MachO format) 2018-02-08 09:38:16 +00:00
sparc * split create_paraloc_info_intern for sparc32 and sparc64 2017-08-20 15:21:51 +00:00
sparc64 * take advantage of the fact that SRA reg1,x,reg2 sign extends to the upper 32 bit bits of a 64 bit register 2017-08-20 17:20:37 +00:00
sparcgen * factored out check to determine whether a variable can be subscripted in 2018-01-01 14:29:21 +00:00
systems * modified patch of Sergey Shishmintzev: add a __text_start symbol if an external linker is used, resolves #26190 2018-02-13 21:16:58 +00:00
utils + add putboolean and getboolean convenience methods to tentfile 2018-01-14 21:36:02 +00:00
x86 * vcmppd hardcoded primitives like vcmpeqpd. 2018-03-03 23:32:54 +00:00
x86_64 * vcmppd hardcoded primitives like vcmpeqpd. 2018-03-03 23:32:54 +00:00
aasmbase.pas + support exporting labels from asm blocks in intel syntax asm blocks via the 2017-10-30 16:44:13 +00:00
aasmcnst.pas * properly align unicode- and ansistring constants 2017-06-19 21:18:03 +00:00
aasmdata.pas
aasmdef.pas
aasmsym.pas
aasmtai.pas + support segment overrides in inline asm references to local variables or parameters on x86 2018-03-01 17:59:57 +00:00
aggas.pas palmos: no .rodata section here either 2018-01-04 08:26:22 +00:00
aopt.pas * removed unused units 2017-05-09 19:53:14 +00:00
aoptbase.pas + define cpudelayslot: set during compiler compilation for CPUs having branch instructions with delay slot (MIPS, SPARC) 2017-08-20 17:20:38 +00:00
aoptda.pas * removed unused units 2017-05-09 19:53:14 +00:00
aoptobj.pas + TUsedRegs.Dump 2018-01-28 13:26:45 +00:00
aoptutils.pas * unified usage of MatchOpType 2017-05-07 16:18:33 +00:00
assemble.pas * fix building on win64 with FPC_SOFT_FPUX80 defined, resolves #32502 2017-11-26 15:16:37 +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 + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
cghlcpu.pas
cgobj.pas Fix msdos failure due to copy/paste error in previous commit 2017-11-20 21:45:29 +00:00
cgutils.pas * GetNextReg(), used by 16-bit and 8-bit code generators (i8086 and avr) moved 2017-09-11 14:53:06 +00:00
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 + patch by Denis Kozlov to add date/time tokens: %DATEYEAR%, %DATEMONTH%, %DATEDAY%, %TIMEHOUR%, %TIMEMINUTE%, %TIMESECOND% 2018-02-24 12:50:55 +00:00
compinnr.pas + added an i8086-specific FarAddr() function, similar to Addr(), but always 2017-11-27 16:41:48 +00:00
comprsrc.pas renamed script unit to cscript to avoid namespace conflict with univint package on Darwin. this makes it possible to build the textmode IDE on Darwin 2017-11-17 11:27:19 +00:00
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas * removed unused units 2017-05-09 19:53:14 +00:00
cscript.pas * quote assembly filenames in Unix script, fixes sh errors with smartlinked small filenames like unitname(1), etc 2018-01-06 10:17:18 +00:00
cstreams.pas
cutils.pas * avoid overflow error in ispowerof2 for -2^bitsize, the routine does not handle negative values 2018-01-13 22:03:29 +00:00
cwindirs.pp
dbgbase.pas * revert r37968: it does more harm than good 2018-01-15 16:41:22 +00:00
dbgdwarf.pas
dbgstabs.pas Add explicit '.set nompis16' at front of stabs debug information to solve bug report 32138 2017-07-24 07:31:31 +00:00
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 + support mmx shifting 2018-02-27 21:40:12 +00:00
dirparse.pas
elfbase.pas
entfile.pas + add putboolean and getboolean convenience methods to tentfile 2018-01-14 21:36:02 +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 Allow compilation of ppc386 compiler using FPC_SOFT_FPUX80, i.e. soft float 80-bit extended float 2017-09-21 14:36:48 +00:00
fpcp.pas * removed unused units 2017-05-09 19:53:14 +00:00
fpkg.pas
fppu.pas + add putboolean and getboolean convenience methods to tentfile 2018-01-14 21:36:02 +00:00
gendef.pas Add obsolete prefix to cpu_ia64, system_ia64_win64 and system_ia64_embedded, ia64 specfic code has been removed in rev 30836 dated 2015-05-09 2017-08-04 08:54:34 +00:00
globals.pas + patch by Denis Kozlov to add date/time tokens: %DATEYEAR%, %DATEMONTH%, %DATEDAY%, %TIMEHOUR%, %TIMEMINUTE%, %TIMESECOND% 2018-02-24 12:50:55 +00:00
globstat.pas
globtype.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
hlcg2ll.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
hlcgobj.pas * avoid unneeded the generation of un-needed shift instructions thlcgobj.in a_load_subsetreg_reg 2017-10-01 16:13:22 +00:00
htypechk.pas * rework the checks for a helper's extended def to be a class so that it can be more easily extended by other objecttypes 2017-08-21 20:48:02 +00:00
impdef.pas
import.pas * removed unused units 2017-05-09 19:53:14 +00:00
ldscript.pas
link.pas * do not use a wildcard while deleting smartlinked objects after linking stage in a script, conflicts with script filename quoting on Unix at least 2018-01-06 10:19:21 +00:00
macho.pas
machoutils.pas
Makefile * fpcmake.inc and Makefiles renerated after last commit 2017-12-27 15:08:18 +00:00
Makefile.fpc Fix the RTL directory for old OSes that use OS_TARGET only for rtlppulogs rule 2017-09-15 11:24:06 +00:00
MPWMake
msgidx.inc + support concatenation of references in x86 intel syntax inline asm: 2018-02-26 17:17:47 +00:00
msgtxt.inc + support concatenation of references in x86 intel syntax inline asm: 2018-02-26 17:17:47 +00:00
nadd.pas * don't convert "int64(sint32) * cardinal_const" into a 32x32->64 2018-01-06 13:44:03 +00:00
nbas.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncal.pas + compiler writes a hint if a subroutine marked as inline cannot be/is not inlined, resolves #31717 2018-02-24 14:35:12 +00:00
ncgadd.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncgbas.pas + support segment overrides in inline asm references to local variables or parameters on x86 2018-03-01 17:59:57 +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 + tinlinenode calls cpu specific routines for unknown inline numbers 2017-11-01 16:33:32 +00:00
ncgld.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
ncgmat.pas + support mmx shifting 2018-02-27 21:40:12 +00:00
ncgmem.pas * fix compilation for jvm, resolves #33195 2018-02-18 17:31:09 +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 + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
ncgset.pas + added comment why the code path is not yet enabled for 16 bit 2018-02-18 09:32:54 +00:00
ncgutil.pas * GetNextReg(), used by 16-bit and 8-bit code generators (i8086 and avr) moved 2017-09-11 14:53:06 +00:00
ncgvmt.pas * shorten interface wrapper names if needed, resolves #33069 2018-02-22 21:55:07 +00:00
ncnv.pas + optimize is operator if used on sealed classes as proposed in #30097 2018-02-28 22:09:24 +00:00
ncon.pas * when creating a realconstn, cast the value to the specified type 2018-01-04 20:51:36 +00:00
nflw.pas * evaluate the lower and upper bounds of for-loops in ISO mode using the 2018-01-07 18:51:53 +00:00
ngenutil.pas Fix m68k-amiga linking failure for native compiler, due conflict between odd length string and .balignw directive 2018-02-26 13:06:37 +00:00
ngtcon.pas * fix range check error 2017-08-20 15:21:48 +00:00
ninl.pas * don't use a vecnode to convert a dynamic array or an array constructor to a pointer as that will lead to problems with range checking if the array should be empty; fixes run of tarray12 with -Cr 2018-02-27 21:43:21 +00:00
nld.pas + add putboolean and getboolean convenience methods to tentfile 2018-01-14 21:36:02 +00:00
nmat.pas + support mmx shifting 2018-02-27 21:40:12 +00:00
nmem.pas * changed the codepointer type in the i8086 small and compact memory models from 2017-12-14 17:36:15 +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
nopt.pas * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
nset.pas + add putboolean and getboolean convenience methods to tentfile 2018-01-14 21:36:02 +00:00
nutils.pas * improve node complexity calculations for type nodes 2017-09-06 20:34:56 +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 * changed type used for section alignment from byte/shortint to longint, so the 2017-10-25 15:47:29 +00:00
ogcoff.pas * changed type used for section alignment from byte/shortint to longint, so the 2017-10-25 15:47:29 +00:00
ogelf.pas * elf section alignment, patch by Florian, mantis #32900 2018-02-16 18:01:29 +00:00
oglx.pas
ogmacho.pas * changed type used for section alignment from byte/shortint to longint, so the 2017-10-25 15:47:29 +00:00
ogmap.pas * removed unused units 2017-05-09 19:53:14 +00:00
ognlm.pas * changed type used for section alignment from byte/shortint to longint, so the 2017-10-25 15:47:29 +00:00
ogomf.pas + added win16stub const array (small dos exe, which prints 'This program 2017-12-21 15:00:43 +00:00
omfbase.pas * changed type used for section alignment from byte/shortint to longint, so the 2017-10-25 15:47:29 +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 * based on patch by Christo Crause: when setting the controller type, set also the sub architecture, resolves #33189 2018-02-18 21:19:35 +00:00
optloadmodifystore.pas + enabled the load-modify-store optimization for the double argument version 2017-07-21 13:17:18 +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 + introduce a new method tparamanager.asm_result_var(), which determines whether 2018-02-15 17:41:07 +00:00
parser.pas renamed script unit to cscript to avoid namespace conflict with univint package on Darwin. this makes it possible to build the textmode IDE on Darwin 2017-11-17 11:27:19 +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 * when creating a unique type alias for an object, class or interface, 2018-01-07 12:25:16 +00:00
pdecobj.pas * fix for Mantis #32355: adjust the meaning of the typehelpers modeswitch for Delphi modes in that it enables the "type helper" syntax as it is in the non-Delphi modes; extending primitive types with record helpers is now always enabled in Delphi modes 2017-09-15 21:09:21 +00:00
pdecsub.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
pdecvar.pas * set an owner for open array defs being created in property declarations, resolves #25769 2018-02-25 17:36:34 +00:00
pexports.pas
pexpr.pas * support asssigning @class.classmethod to a procvar of object in FPC modes 2018-01-06 17:47:44 +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 * move handling of Concat to tinlinenode so that it can be easily extended for dynamic arrays 2017-10-08 10:39:34 +00:00
pkgutil.pas * check that the PPU version of a unit loaded for package adjustment matches exactly (we don't accept different versions when loading PPUs normally, so why should we with packages?) 2018-01-14 21:16:37 +00:00
pmodules.pas * better error message if a unit is not found 2017-12-29 17:27:44 +00:00
pp.lpi - removed missing file from project 2017-04-30 20:48:35 +00:00
pp.pas List possible CPU in alphabetical order 2017-08-04 11:14:12 +00:00
pparautl.pas + introduce a new method tparamanager.asm_result_var(), which determines whether 2018-02-15 17:41:07 +00:00
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 * version update 2018-01-31 18:52:18 +00:00
ppcavr.lpi + version update 2018-01-31 18:46:23 +00:00
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
ppcx64.lpi * made lazarus project names more systematic 2017-12-28 14:34:04 +00:00
ppcx64llvm.lpi * made lazarus project names more systematic 2017-12-28 14:34:04 +00:00
ppheap.pas
ppu.pas + support segment overrides in inline asm references to local variables or parameters on x86 2018-03-01 17:59:57 +00:00
procinfo.pas * removed unused units 2017-05-09 19:53:14 +00:00
pstatmnt.pas * reuse more sparc code for sparc64 2017-08-20 17:20:43 +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 * changed the codepointer type in the i8086 small and compact memory models from 2017-12-14 17:36:15 +00:00
ptconst.pas * removed unused units 2017-05-09 19:53:14 +00:00
ptype.pas * fix for Mantis #32355: adjust the meaning of the typehelpers modeswitch for Delphi modes in that it enables the "type helper" syntax as it is in the non-Delphi modes; extending primitive types with record helpers is now always enabled in Delphi modes 2017-09-15 21:09:21 +00:00
raatt.pas * inserted type casts on opr.val again, but depending on the type of opr.val, avoids range check errors 2018-02-25 15:32:38 +00:00
rabase.pas
rasm.pas * forgotten comment 2018-02-06 21:38:51 +00:00
rautils.pas + support segment overrides in inline asm references to local variables or parameters on x86 2018-03-01 17:59:57 +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 * reuse more sparc code for sparc64 2017-08-20 17:20:43 +00:00
scandir.pas + support {$message info ...}, resolves #30654 2018-02-25 15:50:58 +00:00
scanner.pas + patch by Denis Kozlov to add date/time tokens: %DATEYEAR%, %DATEMONTH%, %DATEDAY%, %TIMEHOUR%, %TIMEMINUTE%, %TIMESECOND% 2018-02-24 12:50:55 +00:00
switches.pas * (re)store alignment when doing a $push/$pop 2018-01-22 21:06:07 +00:00
symbase.pas
symconst.pas + added support for 'external far' variables for i8086 2017-10-30 18:03:44 +00:00
symcreat.pas * workaround for debug info for interface method wrappers: give them the 2018-01-13 16:54:22 +00:00
symdef.pas * when registering a def also register the syms and defs of its symtables 2017-09-27 20:34:38 +00:00
symsym.pas + add putboolean and getboolean convenience methods to tentfile 2018-01-14 21:36:02 +00:00
symtable.pas + extend tstoredsymtable with method register_children to register all its symbols and defs 2017-09-27 20:27:05 +00:00
symtype.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
symutil.pas * removed unused units 2017-05-09 19:53:14 +00:00
syscinfo.pas Add arm-palmos target to list supporting po_syscall 2017-09-15 20:25:59 +00:00
systems.inc Fix fullcycle on x86_64-solaris machine by adding system_sparc64_solaris system constant 2017-12-08 16:53:37 +00:00
systems.pas * fixes sysctl also with 3.0.4 as starting compiler. 2018-02-16 17:58:20 +00:00
tgobj.pas * removed unused units 2017-05-09 19:53:14 +00:00
tokens.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +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