fpc/compiler
Nikolay Nikolov d81170ab23 * fix generation of addend for R_WASM_FUNCTION_OFFSET_I32 relocations. This
improves code address accuracy for WebAssembly debug line info information.
2024-09-11 04:50:35 +03:00
..
aarch64 + apply OptPass1FData on FRINT* 2024-08-31 21:51:15 +01:00
arm * armv7 should a synonyme for arm7a 2024-08-28 20:27:09 +01:00
armgen * arm / a64: New optimisation for removing the number of necessary S/UXTB/H instructions 2024-08-27 18:32:14 +00:00
avr * fix capabilites check 2024-09-10 22:53:35 +02:00
generic
html
i386 Use IndexQWord_SSE41 directly if -Cp RTL compiled with supports SSE 4.1. 2024-07-21 08:40:12 +00:00
i8086
jvm
llvm
loongarch64
m68k * handle adress registers properly in tcg64f68k.a_op64_reg_ref 2024-07-19 20:00:21 +02:00
mips
msg + added several missing targets to the help screen for the -P compiler option 2024-09-06 07:23:23 +03:00
powerpc
powerpc64
ppcgen
riscv * FCVT.W.D returns only a 32 bit int 2024-08-17 18:24:16 +02:00
riscv32 * Risc-V: make use of sext.h instruction if available 2024-08-15 21:53:04 +02:00
riscv64 * Risc-V: make use of sext.h instruction if available 2024-08-15 21:53:04 +02:00
sparc
sparc64
sparcgen
systems * set procalign and loopalign to 0 for WebAssembly - code alignment is unnecessary, as this is a VM. 2024-09-11 04:12:00 +03:00
utils
wasm32 + WebAssembly internal object writer: added safety check for catching bugs, 2024-09-11 04:44:50 +03:00
x86 * x86: Fixed an issue where invalid typecast errors would be raised in the peephole optimizer under -CriotR 2024-07-25 20:35:06 +00:00
x86_64 Use IndexQWord_SSE41 directly if -Cp RTL compiled with supports SSE 4.1. 2024-07-21 08:40:12 +00:00
xtensa Initial support for esp32-c6-s2-s3. Support for idf versions 5.0.6 and 5.2.1 2024-07-18 20:16:04 +00:00
z80
.gitignore
aasmbase.pas
aasmcfi.pas
aasmcnst.pas + emit a size directive for the internal dynarray const label. This fixes 2024-09-01 22:29:34 +03:00
aasmdata.pas
aasmdef.pas
aasmsym.pas
aasmtai.pas * create a TWasmGlobalAsmSymbol instead of TAsmSymbol when generating debug info 2024-09-11 01:12:33 +03:00
aggas.pas Exclude AW flags for sec_fpc data for embedded and freertos targets. 2024-09-01 20:22:17 +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
ctask.pas
cutils.pas
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas * fix the final entry size in the .debug_aranges table on platforms where the 2024-09-11 02:39:29 +03:00
dbgdwarfconst.pas
dbgstabs.pas
dbgstabx.pas
defcmp.pas
defutil.pas
dirparse.pas - disallow enabling regvars for WebAssembly, because it's not supported, yet 2024-08-25 19:58:05 +03:00
dwarfbase.pas
elfbase.pas
entfile.pas Fix compilation with -dDEBUG_PPU 2024-08-16 15:08:19 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas * Do not free used units during reset, they can be in use during load cycle. Fixes issue #40852 2024-07-15 14:09:49 +02:00
fpcdefs.inc
fpchash.pas
fpcp.pas
fpkg.pas
fppu.pas Rename conditional: INTFPPU => DEBUG_GENERATE_INTERFACE_PPU 2024-08-16 15:33:12 +00:00
gendef.pas
globals.pas + WebAssembly: allow specifying heapsize and maxheapsize larger than 2GiB 2024-08-24 14:09:43 +03:00
globstat.pas
globtype.pas
hlcg2ll.pas
hlcgobj.pas Omit FPC_INIT_FUNC_TABLE generation if no unit initialization is registered for current project. 2024-09-09 20:00:44 +00:00
htypechk.pas
impdef.pas
import.pas
ldscript.pas
link.pas
macho.pas
machoutils.pas
Makefile Recompile rtl before trying to compile msg2inc binary 2024-08-29 22:48:15 +02:00
Makefile.fpc Recompile rtl before trying to compile msg2inc binary 2024-08-29 22:48:15 +02:00
MPWMake
nadd.pas
nbas.pas
ncal.pas
ncgadd.pas * generic second_addordinal can handle swapped nodes 2024-08-18 22:03:22 +02:00
ncgbas.pas
ncgcal.pas
ncgcnv.pas
ncgcon.pas
ncgflw.pas
ncghlmat.pas
ncginl.pas
ncgld.pas
ncgmat.pas
ncgmem.pas
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * Do not include class and array properties in RTTI 2024-07-27 08:21:44 +02:00
ncgset.pas
ncgutil.pas
ncgvmt.pas
ncnv.pas
ncon.pas
nflw.pas
ngenutil.pas Omit FPC_INIT_FUNC_TABLE generation if no unit initialization is registered for current project. 2024-09-09 20:00:44 +00:00
ngtcon.pas + emit a size directive for the internal dynarray const label. This fixes 2024-09-01 22:29:34 +03:00
ninl.pas * throw an error in iso/extended pascal mode if enum types are passed to writeln, resolves #40896 2024-08-24 22:14:43 +02:00
nld.pas
nmat.pas
nmem.pas
nobj.pas
nobjc.pas
node.pas
nopt.pas
nset.pas
nutils.pas * estimate complexity of ordconst node better on RiscV 2024-08-26 21:42:51 +01:00
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas
ogcoff.pas
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
ogomf.pas
ogrel.pas
ogwasm.pas * fix generation of addend for R_WASM_FUNCTION_OFFSET_I32 relocations. This 2024-09-11 04:50:35 +03:00
omfbase.pas
optbase.pas
optconstprop.pas
optcse.pas
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas * ignore the '-gl' parameter on WebAssembly, since it's impossible to implement 2024-08-24 14:31:31 +03:00
optloadmodifystore.pas
optloop.pas
opttail.pas
optutils.pas
optvirt.pas
owar.pas
owbase.pas
owomflib.pas
parabase.pas
paramgr.pas
parser.pas * WebAssembly threads default maxheapsize constant changed to more readable form - 256*1024*1024 instead of 268435456 2024-08-18 16:30:38 +03:00
pass_1.pas
pass_2.pas
pbase.pas
pcp.pas
pdecl.pas
pdecobj.pas * Inherit extended RTTI settings from parent object 2024-07-19 16:05:14 +02:00
pdecsub.pas
pdecvar.pas
pexports.pas * Do not try to export symbol if an error occurred, avoid internal error. Fixes issue #40858 2024-07-20 17:51:45 +02:00
pexpr.pas
pgentype.pas
pgenutil.pas
pinline.pas
pkgutil.pas
pmodules.pas * make warning on unsupported esp-idf version a warning string so it can be translated 2024-07-18 22:40:05 +02:00
pp.lpi
pp.pas
pparautl.pas
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcloongarch64.lpi
ppcmips64el.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc64le.lpi
ppcppc.lpi
ppcriscv32.lpi
ppcriscv64.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcwasm32.lpi + enable FPC_WASM_THREADS_INTERNAL_LINKER (not stable, yet) in ppcwasm32.lpi 2024-08-10 19:24:49 +03:00
ppcx64.lpi
ppcx64llvm.lpi
ppcxtensa.lpi
ppcz80.lpi
ppheap.pas
ppu.pas Rename conditional: INTFPPU => DEBUG_GENERATE_INTERFACE_PPU 2024-08-16 15:33:12 +00:00
procdefutil.pas
procinfo.pas
psabiehpi.pas
pstatmnt.pas
psub.pas
psystem.pas
ptconst.pas
ptype.pas
raatt.pas
rabase.pas
rasm.pas
rautils.pas * fixed the WebAssembly inline asm call instruction with the internal assembler writer 2024-07-20 21:53:24 +03:00
README.txt
rescmn.pas
rgbase.pas
rgobj.pas
scandir.pas + WebAssembly: allow specifying heapsize and maxheapsize larger than 2GiB 2024-08-24 14:09:43 +03:00
scanner.pas + introduced method tscannerfile.readval64, similar to readval, but returns an int64 2024-08-24 13:58:49 +03:00
switches.pas
symbase.pas
symconst.pas
symcreat.pas
symdef.pas
symsym.pas
symtable.pas
symtype.pas
symutil.pas
syscinfo.pas
systems.inc * WebAssembly wabt assembler id as_wasm32_wabt renamed as_wasm32_wasa 2024-09-02 02:06:16 +03:00
systems.pas * Added missing i386-win32 target selection 2024-09-09 14:24:05 +01:00
tgobj.pas
tokens.pas
triplet.pas
verbose.pas
version.pas
versioncmp.pas
wasmbase.pas + more relocation types added to the enum TWasmRelocationType 2024-09-11 01:00:30 +03:00
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