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
arm Fix code generated in tarmnotnode.second_boolean 2019-08-28 07:38:35 +00:00
armgen
avr - Fix bug in software overflow checking for longint's. 2019-07-30 13:42:26 +00:00
generic
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
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
riscv + software handling of exceptions on arm 2019-07-28 21:06:36 +00:00
riscv32
riscv64
sparc
sparc64
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
aasmcfi.pas
aasmcnst.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +00:00
aasmdata.pas
aasmdef.pas
aasmsym.pas
aasmtai.pas [PATCH 39/83] adding local instruction 2020-07-29 17:39:36 +00:00
aggas.pas
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
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
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
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
cutils.pas
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
dirparse.pas
dwarfbase.pas
elfbase.pas
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
fmodule.pas
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
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
hlcg2ll.pas
hlcgobj.pas
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
machoutils.pas
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
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
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
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
ngenutil.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +00:00
ngtcon.pas
ninl.pas * factored out inlinenode check whether it may have a side effect 2019-08-18 15:55:03 +00:00
nld.pas
nmat.pas
nmem.pas
nobj.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +00:00
nobjc.pas
node.pas
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
ogelf.pas
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
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
pcp.pas
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
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
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
pstatmnt.pas
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
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