fpc/compiler
nickysn 5df473f7de [PATCH 83/83] using wasa assembler instead of wat2wasm. using assembler symbols to identify weak symbols (sub functions and __stack_top for regular units). Getting rid of wasmtool use wabt text output alignment with tabs
From 11b08b2747e7e11ef6f18a70eca2bb94009c8d3d Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Thu, 9 Apr 2020 13:48:36 -0400

git-svn-id: branches/wasm@45960 -
2020-07-29 19:23:50 +00:00
..
aarch64 * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
arm Fix code generated in tarmnotnode.second_boolean 2019-08-28 07:38:35 +00:00
armgen Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
avr - Fix bug in software overflow checking for longint's. 2019-07-30 13:42:26 +00:00
generic Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
html
i386 + x86 makes use of fpu_capabilities 2019-08-16 11:35:03 +00:00
i8086 - don't create a heap segment for win16 2019-08-12 12:51:37 +00:00
jvm Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
llvm * fixed field alignment when reusing an anonymous recorddef for LLVM and 2019-07-21 11:06:54 +00:00
m68k m68k: tabs 2 spaces, no functional changes 2019-08-26 13:08:39 +00:00
mips * factored out the conditions under which add nodes need to perform 2019-08-03 12:19:50 +00:00
msg Synchronized with trunk, part 2 (make all works, avx-512 support not yet tested, no regression testing yet) 2019-08-10 19:38:35 +00:00
powerpc * factored out the conditions under which add nodes need to perform 2019-08-03 12:19:50 +00:00
powerpc64 * fixed size of base stack frame for ELFv2 2019-08-26 19:26:14 +00:00
ppcgen * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
riscv + software handling of exceptions on arm 2019-07-28 21:06:36 +00:00
riscv32 - Fix bug in 64bit softfloat double negation. 2019-07-07 11:32:27 +00:00
riscv64 - Fix bug in 64bit softfloat double negation. 2019-07-07 11:32:27 +00:00
sparc * Set ControllerSupport to false for sparc/sparc64 and x86_64 CPUs. 2019-07-04 15:24:49 +00:00
sparc64 * Set ControllerSupport to false for sparc/sparc64 and x86_64 CPUs. 2019-07-04 15:24:49 +00:00
sparcgen * factored out the conditions under which add nodes need to perform 2019-08-03 12:19:50 +00:00
systems [PATCH 83/83] using wasa assembler instead of wat2wasm. using assembler symbols to identify weak symbols (sub functions and __stack_top for regular units). Getting rid of wasmtool use wabt text output alignment with tabs 2020-07-29 19:23:50 +00:00
utils [PATCH 55/83] minor fixes and cleanups for the wasm target (#1) 2020-07-29 19:02:27 +00:00
wasm [PATCH 83/83] using wasa assembler instead of wat2wasm. using assembler symbols to identify weak symbols (sub functions and __stack_top for regular units). Getting rid of wasmtool use wabt text output alignment with tabs 2020-07-29 19:23:50 +00:00
x86 -- Zusammenführen von r42706 bis r42724 in ».«: 2019-08-18 11:18:41 +00:00
x86_64 + x86 makes use of fpu_capabilities 2019-08-16 11:35:03 +00:00
aasmbase.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
aasmcfi.pas
aasmcnst.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +00:00
aasmdata.pas * factored out checks whether a procdef's symbol needs to be global, and 2019-07-07 21:33:47 +00:00
aasmdef.pas
aasmsym.pas
aasmtai.pas [PATCH 39/83] adding local instruction 2020-07-29 17:39:36 +00:00
aggas.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
aopt.pas o overhaul-base.patch by J. Gareth Moreton, base for further patches 2019-08-17 16:14:22 +00:00
aoptbase.pas o overhaul-base.patch by J. Gareth Moreton, base for further patches 2019-08-17 16:14:22 +00:00
aoptda.pas
aoptobj.pas o overhaul-base.patch by J. Gareth Moreton, base for further patches 2019-08-17 16:14:22 +00:00
aoptutils.pas o overhaul-base.patch by J. Gareth Moreton, base for further patches 2019-08-17 16:14:22 +00:00
assemble.pas * one more disable location of DoPipe in case not on a Unix platform 2019-06-27 19:20:45 +00:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
cclasses.pas
cfidwarf.pas * some runtime errors fixed, if compiled with -CrR 2019-07-21 12:25:55 +00:00
cfileutl.pas
cg64f32.pas
cgbase.pas * fixed NR_INVALID declaration 2019-06-23 14:12:28 +00:00
cgexcept.pas
cghlcpu.pas
cgobj.pas + software handling of exceptions on arm 2019-07-28 21:06:36 +00:00
cgutils.pas [PATCH 41/83] revise treference extension for wasm. specifying local variable use vs memory use 2020-07-29 17:41:15 +00:00
cmsgs.pas
comphook.pas
compiler.pas
compinnr.pas
comprsrc.pas
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +00:00
cscript.pas
cstreams.pas * partial fix for Mantis #35346: more "inline" directives for TCStream and TCMemoryStream methods 2019-06-28 13:30:33 +00:00
cutils.pas + Encode(U/S)leb128 take now a third parameter to force that the constant has a certain minimum size 2019-06-20 17:13:28 +00:00
cwindirs.pp
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas - Applied patch by Christo Crause from #33914 2019-07-25 13:24:10 +00:00
dbgstabs.pas
dbgstabx.pas
defcmp.pas * support unique copies of currencies which are handles by torddef, resolves #36013 2019-08-26 19:31:48 +00:00
defutil.pas * relaxation of r42272: again only show warnings rather than errors for 2019-06-23 14:12:33 +00:00
dirparse.pas
dwarfbase.pas
elfbase.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
entfile.pas Fix change_endian code to read double and single float data 2019-08-08 06:24:47 +00:00
export.pas
expunix.pas
finput.pas Commit of new debug feature implemented by J. Gareth Moreton 2019-06-22 14:08:47 +00:00
fmodule.pas * generate construction function for the attributes used in a unit using a more straight forward approach 2019-07-12 22:07:20 +00:00
fpccrc.pas
fpcdefs.inc [PATCH 02/83] updating common FPC sources for WASM target 2020-07-29 16:01:48 +00:00
fpcp.pas
fpkg.pas
fppu.pas * fixed compilation with -dTest_Double_checksum_write 2019-06-30 17:19:31 +00:00
gendef.pas
globals.pas [PATCH 02/83] updating common FPC sources for WASM target 2020-07-29 16:01:48 +00:00
globstat.pas
globtype.pas Reintegration of Custom Attributes branch by Joost van der Sluis with patches reworked by Svetozar Belic [patch 1/3] 2019-07-12 22:04:48 +00:00
hlcg2ll.pas
hlcgobj.pas * factored out checks whether a procdef's symbol needs to be global, and 2019-07-07 21:33:47 +00:00
htypechk.pas
impdef.pas
import.pas
ldscript.pas
link.pas * use a process unique name for link.res, so multiple FPCs can be run in parallel in one directory 2019-08-11 15:58:36 +00:00
macho.pas Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
machoutils.pas Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
Makefile Update all trunk/fpcsrc Makefile's after commit 42749 2019-08-20 15:58:10 +00:00
Makefile.fpc [PATCH 55/83] minor fixes and cleanups for the wasm target (#1) 2020-07-29 19:02:27 +00:00
MPWMake
msgidx.inc Synchronized with trunk, part 2 (make all works, avx-512 support not yet tested, no regression testing yet) 2019-08-10 19:38:35 +00:00
msgtxt.inc Synchronized with trunk, part 2 (make all works, avx-512 support not yet tested, no regression testing yet) 2019-08-10 19:38:35 +00:00
nadd.pas Check that inserttypeconv really change node type to ttypeconvnode before setting convtype field (should fix taddbool.pp bytebool failure on powerpc) 2019-08-14 23:00:35 +00:00
nbas.pas * maybereplacewithtemp/maybereplacewithtempref: also create a temp in case 2019-07-07 21:33:36 +00:00
ncal.pas [PATCH 15/83] updating parameters sorting for wasm. Goes left-to-right 2020-07-29 16:42:19 +00:00
ncgadd.pas * factored out the conditions under which add nodes need to perform 2019-08-03 12:19:50 +00:00
ncgbas.pas
ncgcal.pas + software handling of exceptions on arm 2019-07-28 21:06:36 +00:00
ncgcnv.pas
ncgcon.pas
ncgflw.pas [PATCH 02/83] updating common FPC sources for WASM target 2020-07-29 16:01:48 +00:00
ncghlmat.pas
ncginl.pas
ncgld.pas
ncgmat.pas - Fix bug in 64bit softfloat double negation. 2019-07-07 11:32:27 +00:00
ncgmem.pas
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * use the size of the generated anonymous record instead of the manual tracked size so that any padding is picked up as well 2019-07-28 19:50:30 +00:00
ncgset.pas Avoid range check error for avr/i8086 CPU by changing local variable dist type to asizeuint 2019-08-19 20:22:22 +00:00
ncgutil.pas * factored out checks whether a procdef's symbol needs to be global, and 2019-07-07 21:33:47 +00:00
ncgvmt.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +00:00
ncnv.pas * ensure that aprocdef is initialized to Nil to catch problems with compare_defs_ext() easier 2019-08-15 14:32:57 +00:00
ncon.pas * fix writing of floating point attribute parameters 2019-07-24 20:32:17 +00:00
nflw.pas Commit of new debug feature implemented by J. Gareth Moreton 2019-06-22 14:08:47 +00:00
ngenutil.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +00:00
ngtcon.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
ninl.pas * factored out inlinenode check whether it may have a side effect 2019-08-18 15:55:03 +00:00
nld.pas Commit of new debug feature implemented by J. Gareth Moreton 2019-06-22 14:08:47 +00:00
nmat.pas
nmem.pas Commit of new debug feature implemented by J. Gareth Moreton 2019-06-22 14:08:47 +00:00
nobj.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +00:00
nobjc.pas
node.pas Commit patch submitted in bug report #35787 by Gareth Moreton 2019-07-01 19:42:48 +00:00
nopt.pas
nset.pas * an incomplete case statement is not an error in ISO Pascal (mantis #35910) 2019-08-03 13:47:27 +00:00
nutils.pas * factored out inlinenode check whether it may have a side effect 2019-08-18 15:55:03 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +00:00
objcutil.pas
ogbase.pas + introduced TExeSection.MemPosStr - a virtual method for converting the 2019-08-02 16:05:37 +00:00
ogcoff.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
ogelf.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
oglx.pas
ogmacho.pas
ogmap.pas + introduced TExeSection.MemPosStr - a virtual method for converting the 2019-08-02 16:05:37 +00:00
ognlm.pas
ogomf.pas + added a getter for the NewExeSegmentFlags property, that returns the 2019-08-20 13:49:43 +00:00
omfbase.pas * synchronised with trunk till r42256 2019-06-20 17:21:34 +00:00
optbase.pas
optconstprop.pas
optcse.pas
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas [PATCH 55/83] minor fixes and cleanups for the wasm target (#1) 2020-07-29 19:02:27 +00:00
optloadmodifystore.pas
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 * instead of declaring another type with a 'attribute' suffix, *search* for another type with a 'ATTRIBUTE' suffix (Delphi allows declaring both a TFoo and TFooAttribute in the same unit) 2019-07-12 22:05:18 +00:00
pcp.pas Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
pdecl.pas * implement support for the Objective-C "related result type" convention 2019-08-25 15:23:53 +00:00
pdecobj.pas * get rid of the scanner message for attributes for real this time (sometimes I *really* hate Git -.-) 2019-07-13 09:37:44 +00:00
pdecsub.pas * disable [...] syntax for procedure directives if modeswitch "prefixed attributes" is enabled; they conflict otherwise and it's not easily resolveable 2019-07-12 22:07:50 +00:00
pdecvar.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +00:00
pexports.pas
pexpr.pas * instead of declaring another type with a 'attribute' suffix, *search* for another type with a 'ATTRIBUTE' suffix (Delphi allows declaring both a TFoo and TFooAttribute in the same unit) 2019-07-12 22:05:18 +00:00
pgentype.pas
pgenutil.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +00:00
pinline.pas
pkgutil.pas
pmodules.pas * generate construction function for the attributes used in a unit using a more straight forward approach 2019-07-12 22:07:20 +00:00
pp.lpi -- Rückwärtiges Zusammenführen von r39680 in ».«: 2019-08-11 16:31:48 +00:00
pp.pas [PATCH 02/83] updating common FPC sources for WASM target 2020-07-29 16:01:48 +00:00
pparautl.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +00:00
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi [PATCH 02/83] updating common FPC sources for WASM target 2020-07-29 16:01:48 +00:00
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcriscv32.lpi
ppcriscv64.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcwasm.lpi [PATCH 01/83] starting ppcwasm lazarus project 2020-07-29 15:59:50 +00:00
ppcx64.lpi Synchronized with trunk, part 1 (only make cycle tested, make all is broken, avx-512 support not yet tested 2019-08-10 13:53:20 +00:00
ppcx64llvm.lpi
ppheap.pas
ppu.pas Try to fix ppudump for generic/inline. 2019-07-29 16:40:58 +00:00
procdefutil.pas
procinfo.pas + software handling of exceptions on arm 2019-07-28 21:06:36 +00:00
psabiehpi.pas * write correct s/uleb types 2019-06-20 15:30:07 +00:00
pstatmnt.pas * change boolean parameters for try_consume_unitsym to a set 2019-07-12 22:05:05 +00:00
psub.pas [PATCH 04/83] update for Wasm target. adapting Karoly's changes from webassembly branch 2020-07-29 16:28:18 +00:00
psystem.pas [PATCH 04/83] update for Wasm target. adapting Karoly's changes from webassembly branch 2020-07-29 16:28:18 +00:00
ptconst.pas
ptype.pas * fix for Mantis #35981: ensure that the "specialize" token is only really used in non-Delphi modes 2019-08-23 14:59:20 +00:00
raatt.pas
rabase.pas
rasm.pas
rautils.pas * also register symbols referenced from assembler via asolutevarsyms 2019-06-29 16:27:10 +00:00
README.txt
rescmn.pas
rgbase.pas
rgobj.pas
scandir.pas * limit the heapsize to 65520 bytes on win16 (the $M directive in win16 only 2019-08-12 14:24:01 +00:00
scanner.pas * intel asm reader: try to read avx512 extensions only if the instruction supports them 2019-08-12 10:46:19 +00:00
switches.pas
symbase.pas
symconst.pas * implement support for the Objective-C "related result type" convention 2019-08-25 15:23:53 +00:00
symcreat.pas * fix for Mantis #35918: don't set the mangledname for the attribute's constructor function; let the compiler do its job instead 2019-08-02 14:07:17 +00:00
symdef.pas Avoid error with -CR option in tobjectdef.vmt_def method 2019-08-16 16:31:08 +00:00
symsym.pas * store attribute information in PPU; this is less important for the compiler, but more for e.g. Lazarus when dealing with binary only units 2019-07-12 22:07:46 +00:00
symtable.pas Avoid possible warning about uninitialized srsym variable 2019-08-27 12:15:03 +00:00
symtype.pas
symutil.pas
syscinfo.pas
systems.inc [PATCH 20/83] adding asm linker enum entry 2020-07-29 16:51:38 +00:00
systems.pas [PATCH 55/83] minor fixes and cleanups for the wasm target (#1) 2020-07-29 19:02:27 +00:00
tgobj.pas
tokens.pas
verbose.pas
version.pas
widestr.pas
wpo.pas
wpobase.pas
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