fpc/compiler
nickysn 9fdc8c141c + implemented the boolean NOT node for WebAssembly
git-svn-id: branches/wasm@48180 -
2021-01-18 22:48:24 +00:00
..
aarch64
arm
armgen
avr * patch by Christo Crause: Fix missed optimization opportunities, resolves #38285 2020-12-31 15:33:39 +00:00
generic
html
i386 + AddLea2Lea optimization 2021-01-08 22:22:56 +00:00
i8086 + override get_address_type for the i8086 code generator and return near pointer 2021-01-15 15:47:38 +00:00
jvm
llvm * llvm: only set custom parameter alignments for byval parameters, the rest 2021-01-06 22:35:40 +00:00
m68k
mips
msg * clear up message that a global generic references a static symbol a bit 2021-01-10 10:55:18 +00:00
powerpc
powerpc64
ppcgen
riscv
riscv32
riscv64
sparc
sparc64
sparcgen
systems
utils * synchronized with trunk 2021-01-07 07:21:01 +00:00
wasm32 + implemented the boolean NOT node for WebAssembly 2021-01-18 22:48:24 +00:00
x86 * patch by J. Gareth Moreton to fix MovzxCmp2CmpMovzx, resolves #38339 2021-01-10 10:23:40 +00:00
x86_64 + support R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX 2021-01-14 21:36:12 +00:00
xtensa
z80
aasmbase.pas
aasmcfi.pas
aasmcnst.pas
aasmdata.pas
aasmdef.pas
aasmsym.pas
aasmtai.pas * refactored call_indirect to use a 'functype' operand type. This type will be reused for block instructions as well. 2021-01-04 10:50:06 +00:00
aggas.pas * fixed call_indirect for the llvm-mc asm writer 2021-01-02 12:21:30 +00:00
aopt.pas
aoptbase.pas
aoptda.pas
aoptobj.pas Fix compilation with -dALLOCREGDEBUG 2021-01-08 11:13:43 +00:00
aoptutils.pas
assemble.pas
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas
cepiktimer.pas
cfidwarf.pas
cfileutl.pas
cg64f32.pas
cgbase.pas
cgexcept.pas
cghlcpu.pas
cgobj.pas
cgutils.pas
cmsgs.pas
comphook.pas
compiler.pas
compinnr.pas
comprsrc.pas
comptty.pas
constexp.pas
COPYING.txt
cprofile.pas
crefs.pas
cresstr.pas
cscript.pas
cstreams.pas
cutils.pas
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas
dbgstabs.pas Correct check of stringtype inside use_tag_prefix function 2021-01-11 22:17:09 +00:00
dbgstabx.pas
defcmp.pas * weight currency->float conversions the same regardless if 2021-01-05 22:39:16 +00:00
defutil.pas
dirparse.pas
dwarfbase.pas
elfbase.pas
entfile.pas
export.pas
expunix.pas
finput.pas
fmodule.pas
fpccrc.pas
fpcdefs.inc * synchronized with trunk 2021-01-11 07:01:01 +00:00
fpcp.pas
fpkg.pas
fppu.pas
gendef.pas
globals.pas
globstat.pas
globtype.pas
hlcg2ll.pas
hlcgobj.pas
htypechk.pas * fix for Mantis #38310: ignore procsyms that have no procdefs for checking overloads, or more precisely to stop checking for overloads; these are generic dummy symbols 2021-01-05 20:58:46 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas
macho.pas
machoutils.pas
Makefile * regenerated makefiles 2021-01-02 22:25:27 +00:00
Makefile.fpc
MPWMake
msgidx.inc * regenerate msg*.inc files 2021-01-10 10:55:26 +00:00
msgtxt.inc * regenerate msg*.inc files 2021-01-10 10:55:26 +00:00
nadd.pas * clean up 2021-01-03 15:03:27 +00:00
nbas.pas
ncal.pas * synchronized with trunk 2021-01-11 07:01:01 +00:00
ncgadd.pas
ncgbas.pas
ncgcal.pas
ncgcnv.pas
ncgcon.pas * fix proposed by Christo Crause: properly handle pointer constant nodes on avr, resolves #38321 2021-01-06 12:52:36 +00:00
ncgflw.pas
ncghlmat.pas
ncginl.pas
ncgld.pas
ncgmat.pas
ncgmem.pas + introduced the tcgvecnode.get_address_type virtual method and use its result, 2021-01-15 15:29:58 +00:00
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas
ncgset.pas * generate jumpless code for the IN node for WebAssembly. TODO: this needs to be 2021-01-18 22:32:35 +00:00
ncgutil.pas
ncgvmt.pas
ncnv.pas * avoid widening of shl operations, this is not necessary for them either 2021-01-12 21:45:38 +00:00
ncon.pas
nflw.pas
ngenutil.pas
ngtcon.pas
ninl.pas
nld.pas
nmat.pas
nmem.pas
nobj.pas
nobjc.pas
node.pas
nopt.pas
nset.pas + implemented WebAssembly code generation for case statements 2021-01-18 20:57:05 +00:00
nutils.pas
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas + support R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX 2021-01-14 21:36:12 +00:00
ogcoff.pas
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
ogomf.pas
ogrel.pas
omfbase.pas
optbase.pas
optconstprop.pas
optcse.pas
optdead.pas
optdeadstore.pas
optdfa.pas * do not check inlined exit nodes for unset results, resolves #38259 2020-12-31 15:52:02 +00:00
options.pas + define the CPUWASM32 system macro for wasm32 2021-01-02 07:54:53 +00:00
optloadmodifystore.pas
optloop.pas
opttail.pas
optutils.pas * correctly handle inlined exits in dfa, resolves #38259 2020-12-29 22:35:33 +00:00
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
pdecobj.pas
pdecsub.pas * throw a proper error if a contructur has a type parameter in delphi mode, resolves #37217 2021-01-08 14:19:19 +00:00
pdecvar.pas
pexports.pas * instead of blindly consuming whatever comes next trigger an explicit error if the parsed expression does not match for "INDEX ordexpr" or "NAME strexpr" 2021-01-02 23:23:08 +00:00
pexpr.pas * correctly handle the case should the generic dummy symbol be a procsym instead of a typesym 2021-01-02 23:23:34 +00:00
pgentype.pas
pgenutil.pas * when only a symbol name is provided to generate_specialization_phase1 allow a symbol table to be provided as well 2021-01-02 23:23:29 +00:00
pinline.pas
pkgutil.pas
pmodules.pas
pp.lpi
pp.pas
pparautl.pas
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips64el.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc64le.lpi
ppcppc.lpi
ppcriscv32.lpi
ppcriscv64.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcwasm32.lpi
ppcx64.lpi
ppcx64llvm.lpi
ppcxtensa.lpi
ppcz80.lpi
ppheap.pas
ppu.pas * have the generic dummy symbols for procsyms keep track of their overloaded generic procsyms so that they can be easily found (will be needed for implicit specializations) 2021-01-06 12:57:59 +00:00
procdefutil.pas
procinfo.pas
psabiehpi.pas
pstatmnt.pas
psub.pas * synchronize with trunk 2020-12-28 18:45:24 +00:00
psystem.pas
ptconst.pas
ptype.pas + implement align directive for records, resolves #28927 2020-12-29 18:19:35 +00:00
raatt.pas
rabase.pas
rasm.pas
rautils.pas
README.txt
rescmn.pas
rgbase.pas
rgobj.pas
scandir.pas
scanner.pas
switches.pas
symbase.pas
symconst.pas
symcreat.pas
symdef.pas
symsym.pas * have the generic dummy symbols for procsyms keep track of their overloaded generic procsyms so that they can be easily found (will be needed for implicit specializations) 2021-01-06 12:57:59 +00:00
symtable.pas * correctly handle the case should the generic dummy symbol be a procsym instead of a typesym 2021-01-02 23:23:34 +00:00
symtype.pas
symutil.pas
syscinfo.pas
systems.inc
systems.pas + enable the sign extension wasm32 instructions 2021-01-02 15:07:38 +00:00
tgobj.pas
tokens.pas
triplet.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