fpc/compiler
2021-02-04 10:07:17 +00:00
..
aarch64 * Removed/ifdefed the assigned and unused variables. 2021-01-24 13:58:17 +00:00
arm * Corrected method's visibility. 2021-01-24 14:06:35 +00:00
armgen
avr * Removed more assigned but unused vars. 2021-01-24 14:05:21 +00:00
generic
html
i386
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
m68k m68k: revert r48224, the fix proposed in that patch was just hiding an underlying issue 2021-01-25 00:42:01 +00:00
mips
msg * synchronized with trunk 2021-01-26 22:52:18 +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 * regenerated makefile after sync with trunk 2021-01-25 20:53:18 +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
xtensa
z80
aasmbase.pas
aasmcfi.pas
aasmcnst.pas
aasmdata.pas
aasmdef.pas
aasmsym.pas
aasmtai.pas
aggas.pas * synchronized with trunk 2021-01-24 23:38:35 +00:00
aopt.pas
aoptbase.pas
aoptda.pas
aoptobj.pas
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 * Fixed value of the LF_PAD13 enum element. 2021-01-24 14:29:39 +00:00
dbgdwarf.pas - don't emit DEBUGSTART and DEBUGEND symbols for WebAssembly. See https://bugs.llvm.org/show_bug.cgi?id=48971 2021-02-04 10:07:17 +00:00
dbgstabs.pas
dbgstabx.pas
defcmp.pas
defutil.pas
dirparse.pas
dwarfbase.pas
elfbase.pas
entfile.pas
export.pas * removed unused units 2017-05-09 19:53:14 +00:00
expunix.pas
finput.pas
fmodule.pas
fpccrc.pas
fpcdefs.inc
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
htypechk.pas
impdef.pas
import.pas
ldscript.pas
link.pas
macho.pas Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
machoutils.pas
Makefile * regenerated makefiles 2021-01-24 02:01:11 +00:00
Makefile.fpc
MPWMake
msgidx.inc * synchronized with trunk 2021-01-24 23:38:35 +00:00
msgtxt.inc * synchronized with trunk 2021-01-26 22:52:18 +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
ncgadd.pas
ncgbas.pas
ncgcal.pas
ncgcnv.pas
ncgcon.pas
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
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
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
ninl.pas * generate more efficient code for trunc(currency), trunc(comp), and 2020-12-27 13:18:47 +00:00
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
nutils.pas
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas
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
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
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
pdecvar.pas
pexports.pas
pexpr.pas
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
pp.lpi
pp.pas
pparautl.pas
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
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
procdefutil.pas
procinfo.pas
psabiehpi.pas * Removed/ifdefed the assigned and unused variables. 2021-01-24 13:58:17 +00:00
pstatmnt.pas
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
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
symcreat.pas
symdef.pas * Removed/ifdefed lots of unused variables. 2021-01-24 12:24:01 +00:00
symsym.pas
symtable.pas
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
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