fpc/compiler
nickysn a74024e7d5 * synchronized with trunk
git-svn-id: branches/wasm@48654 -
2021-02-12 01:54:24 +00:00
..
aarch64 * Removed/ifdefed the assigned and unused variables. 2021-01-24 13:58:17 +00:00
arm - armv5 never existed (without extension), removed 2021-02-11 21:27:12 +00:00
armgen * arm/aarch64: patch by J. Gareth Moreton: fix register allocation information for Mov2None 2, should resolve #38055 2021-01-20 21:14:09 +00:00
avr * Removed more assigned but unused vars. 2021-01-24 14:05:21 +00:00
generic
html
i386 + AddLea2Lea optimization 2021-01-08 22:22:56 +00:00
i8086 * synchronized with trunk 2021-01-24 23:38:35 +00:00
jvm * Removed/ifdefed the assigned and unused variables. 2021-01-24 13:58:17 +00:00
llvm * llvm: only set custom parameter alignments for byval parameters, the rest 2021-01-06 22:35:40 +00:00
m68k m68k: write inline floating point immediates as hex consts, instead of scientific notation. the scientific notation format parsing depends on the libc the assembler was linked against, which can lead to varying results and compile errors 2021-02-08 05:01:45 +00:00
mips
msg * synchronized with trunk 2021-02-12 01:54:24 +00:00
powerpc
powerpc64
ppcgen
riscv
riscv32
riscv64
sparc
sparc64
sparcgen
systems * set the default debug info type to dbg_dwarf2 for the WebAssembly targets 2021-01-28 15:55:31 +00:00
utils * synchronized with trunk 2021-02-12 01:54:24 +00:00
wasm32 * fixed compilation with -Sew 2021-01-28 16:25:03 +00:00
x86 * Removed in_x86mm_last (the duplicate no and unused) from the tinlinenumber enum. 2021-01-24 14:28:49 +00:00
x86_64 * x86: some fixes to enable 8 and 16 bit operations 2021-01-16 22:46:25 +00:00
xtensa
z80
aasmbase.pas
aasmcfi.pas
aasmcnst.pas * synchronized with trunk 2021-02-06 08:27:24 +00:00
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 * synchronized with trunk 2021-01-24 23:38:35 +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 * the size of the CIE_pointer in an FDE is always 32 bit 2021-02-03 20:05:56 +00:00
cfileutl.pas
cg64f32.pas
cgbase.pas
cgexcept.pas
cghlcpu.pas
cgobj.pas
cgutils.pas
cmsgs.pas
comphook.pas
compiler.pas
compinnr.pas + implemented memory.grow and memory.size intrinsics and implemented SysOSAlloc 2021-01-21 23:13:49 +00:00
comprsrc.pas
comptty.pas
constexp.pas
COPYING.txt
cprofile.pas
crefs.pas
cresstr.pas
cscript.pas
cstreams.pas
cutils.pas
dbgbase.pas
dbgcodeview.pas * Fixed value of the LF_PAD13 enum element. 2021-01-24 14:29:39 +00:00
dbgdwarf.pas + apped end of symbol in TDebugInfoDwarf.afterappenddef 2021-02-04 10:41:25 +00:00
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 + modified patch by Christo Crause: if the target support, the switch -Xu can be used to generate the executable as an uf2 file 2021-01-24 14:21:03 +00:00
hlcg2ll.pas
hlcgobj.pas * synchronized with trunk 2021-01-19 23:01:55 +00:00
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 * synchronized with trunk 2021-02-12 01:54:24 +00:00
Makefile.fpc * synchronized with trunk 2021-02-12 01:54:24 +00:00
MPWMake
msgidx.inc * synchronized with trunk 2021-02-12 01:54:24 +00:00
msgtxt.inc * synchronized with trunk 2021-02-12 01:54:24 +00:00
nadd.pas * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
nbas.pas * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
ncal.pas * synchronized with trunk 2021-02-12 01:54:24 +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 * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
ncgld.pas
ncgmat.pas
ncgmem.pas + insert hlcg.g_ptrtypecast_reg calls in tcgvecnode.update_reference_reg_mul and update_reference_reg_packed 2021-01-24 02:46:31 +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 * properly mangle interface wrapper names to avoid duplicate label errors, resolves #38385 2021-01-24 21:32:27 +00:00
ncnv.pas + throw a warning in ISO mode if a constant string is assigned to a char and the sizes do not match, resolves #38439 2021-02-09 20:48:27 +00:00
ncon.pas * handle generic with ord call of sub-range and enumeration data excluding 0 correctly, resolves #38412 2021-01-29 21:31:59 +00:00
nflw.pas * Removed/ifdefed the assigned and unused variables. 2021-01-24 13:58:17 +00:00
ngenutil.pas
ngtcon.pas * allow sub/add nodes in constant pointer expressions, resolves #34027 2021-02-05 22:10:27 +00:00
ninl.pas
nld.pas
nmat.pas
nmem.pas * removed accidently committed printnode 2021-01-31 13:19:55 +00:00
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 * Removed/ifdefed the assigned and unused variables. 2021-01-24 13:58:17 +00:00
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 * synchronized with trunk 2021-01-24 23:38:35 +00:00
optloadmodifystore.pas
optloop.pas * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
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 + introduced the discardresult directive and declared the UniqueString() 2021-01-21 21:42:07 +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 * Removed/ifdefed the assigned and unused variables. 2021-01-24 13:58:17 +00:00
pinline.pas
pkgutil.pas
pmodules.pas * synchronized with trunk 2021-02-12 01:54:24 +00:00
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 * Removed/ifdefed the assigned and unused variables. 2021-01-24 13:58:17 +00:00
pstatmnt.pas + allow int64 as for loop counter also for 32-bit targets with a 64-bit ALU 2021-01-20 16:29:30 +00:00
psub.pas * synchronized with trunk 2021-01-24 23:38:35 +00:00
psystem.pas
ptconst.pas
ptype.pas
raatt.pas
rabase.pas
rasm.pas
rautils.pas * more helpful message if an unknown field is accessed in the assembler reader, resolves #38475 2021-02-11 20:51:53 +00:00
README.txt
rescmn.pas
rgbase.pas
rgobj.pas * rgobj: ungetiftemp can't be used here since it frees only temps of the tt_normal type. 2021-01-24 17:53:42 +00:00
scandir.pas * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
scanner.pas * give a proper error if macros are too deeply nested 2021-01-23 21:29:37 +00:00
switches.pas
symbase.pas
symconst.pas + introduced the discardresult directive and declared the UniqueString() 2021-01-21 21:42:07 +00:00
symcreat.pas
symdef.pas * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
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 * use ld_embedded instead of ld_wasm for the linker id for the wasm32 embedded target 2021-01-24 01:48:57 +00:00
systems.pas * synchronized with trunk 2021-01-24 23:38:35 +00:00
tgobj.pas
tokens.pas + introduced the discardresult directive and declared the UniqueString() 2021-01-21 21:42:07 +00:00
triplet.pas
verbose.pas * do not output error numbers for options 2021-01-24 14:34:02 +00:00
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