fpc/compiler
florian aaa6ae5770 + AVR: cputype cpu_avrtiny
git-svn-id: trunk@43984 -
2020-01-19 15:55:22 +00:00
..
aarch64 * accept locals replaced by symbols in inline assembly by the LLVM code 2020-01-07 20:22:23 +00:00
arm -- Zusammenführen von r31198 in ».«: 2019-12-31 13:28:03 +00:00
armgen * added is_normal_fieldvarsym() helper and use it 2019-12-24 22:12:44 +00:00
avr + AVR: cputype cpu_avrtiny 2020-01-19 15:55:22 +00:00
generic
html
i386 * patch by J. Gareth Moreton: EAX -> EDX:EAX sign extension shortcuts, and MOVSX shortcuts for AX register, part 2 of #36551 2020-01-12 09:20:01 +00:00
i8086 * renamed getintparaloc to getcgtempparaloc 2019-12-24 22:12:25 +00:00
jvm * renamed getintparaloc to getcgtempparaloc 2019-12-24 22:12:25 +00:00
llvm * constrained sitofp is not yet supported in LLVM for all targets 2020-01-07 20:22:17 +00:00
m68k * cleaning up tcgsize: it makes no sense to declare every combination and type 2020-01-04 21:54:53 +00:00
mips * renamed getintparaloc to getcgtempparaloc 2019-12-24 22:12:25 +00:00
msg * Fixed generation of documentation 2020-01-01 17:23:28 +00:00
powerpc * use 64 bit code page in tppcshlshrnode.pass_generate_code for all 64 bit types, 2019-12-25 22:11:31 +00:00
powerpc64 * added is_normal_fieldvarsym() helper and use it 2019-12-24 22:12:44 +00:00
ppcgen * renamed getintparaloc to getcgtempparaloc 2019-12-24 22:12:25 +00:00
riscv - RISC-V: Add controller types for common RV32 MCUs. 2020-01-13 22:54:26 +00:00
riscv32 - RISC-V: Add controller types for common RV32 MCUs. 2020-01-13 22:54:26 +00:00
riscv64 - RISC-V: Share optimizations between 32 and 64-bit. 2020-01-13 22:49:23 +00:00
sparc * common naming for fpu_none string 2019-12-24 16:14:28 +00:00
sparc64 * common naming for fpu_none string 2019-12-24 16:14:28 +00:00
sparcgen * renamed getintparaloc to getcgtempparaloc 2019-12-24 22:12:25 +00:00
systems - RISC-V: Add controller types for common RV32 MCUs. 2020-01-13 22:54:26 +00:00
utils * first part of merging parts of Jeppe's intrinsics patch, mainly r31135 2020-01-14 21:52:39 +00:00
x86 * first part of merging parts of Jeppe's intrinsics patch, mainly r31135 2020-01-14 21:52:39 +00:00
x86_64 * patch by J. Gareth Moreton: EAX -> EDX:EAX sign extension shortcuts, and MOVSX shortcuts for AX register, part 2 of #36551 2020-01-12 09:20:01 +00:00
aasmbase.pas
aasmcfi.pas
aasmcnst.pas * added is_normal_fieldvarsym() helper and use it 2019-12-24 22:12:44 +00:00
aasmdata.pas
aasmdef.pas * also generate indirect symbols for AB_PRIVATE_EXTERN symbols as these might be used from a unit in another package due to inlining 2019-11-21 21:44:12 +00:00
aasmsym.pas
aasmtai.pas
aggas.pas
aopt.pas * do prefetching correctly 2020-01-06 20:59:24 +00:00
aoptbase.pas * do prefetching correctly 2020-01-06 20:59:24 +00:00
aoptda.pas
aoptobj.pas - Handle jump optimizations on RISC-V 2020-01-13 22:42:39 +00:00
aoptutils.pas o patch by J. Gareth Moreton, seeks to improve maintainability, safety and efficiency 2019-11-26 22:09:33 +00:00
assemble.pas
blockutl.pas
browcol.pas * added is_normal_fieldvarsym() helper and use it 2019-12-24 22:12:44 +00:00
catch.pas
ccharset.pas * some cleanup 2019-12-23 21:52:06 +00:00
cclasses.pas * do prefetching correctly 2020-01-06 20:59:24 +00:00
cepiktimer.pas + forgotten file 2020-01-06 20:59:25 +00:00
cfidwarf.pas * AVR: fixed TDwarfAsmCFILowLevel.generate_initial_instructions 2020-01-19 15:55:21 +00:00
cfileutl.pas
cg64f32.pas
cgbase.pas * first part of merging parts of Jeppe's intrinsics patch, mainly r31135 2020-01-14 21:52:39 +00:00
cgexcept.pas * renamed getintparaloc to getcgtempparaloc 2019-12-24 22:12:25 +00:00
cghlcpu.pas
cgobj.pas * cleaning up tcgsize: it makes no sense to declare every combination and type 2020-01-04 21:54:53 +00:00
cgutils.pas
cmsgs.pas
comphook.pas * fixed output of line numbers/columns with -vR 2019-12-24 16:14:29 +00:00
compiler.pas
compinnr.pas * first part of merging parts of Jeppe's intrinsics patch, mainly r31135 2020-01-14 21:52:39 +00:00
comprsrc.pas
constexp.pas
COPYING.txt
cpid.pas
cprofile.pas * proper naming 2020-01-06 14:58:06 +00:00
crefs.pas
cresstr.pas
cscript.pas
cstreams.pas
cutils.pas
cwindirs.pp
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas * Add riscv-embedded to targets that don't support non-constant leb128's. 2020-01-03 17:03:38 +00:00
dbgstabs.pas * added is_normal_fieldvarsym() helper and use it 2019-12-24 22:12:44 +00:00
dbgstabx.pas
defcmp.pas
defutil.pas * first part of merging parts of Jeppe's intrinsics patch, mainly r31135 2020-01-14 21:52:39 +00:00
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 + support for LLVM metadata constant string parameters 2019-12-30 15:04:57 +00:00
fpccrc.pas
fpcdefs.inc
fpcp.pas
fpkg.pas
fppu.pas
gendef.pas
globals.pas - removed LLVM support for clang < 7.0 and Xcode < 10.0: those versions 2019-12-14 14:59:05 +00:00
globstat.pas
globtype.pas
hlcg2ll.pas
hlcgobj.pas * cleaning up tcgsize: it makes no sense to declare every combination and type 2020-01-04 21:54:53 +00:00
htypechk.pas * comment fixed 2019-12-28 18:18:41 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas
macho.pas
machoutils.pas
Makefile * first part of merging parts of Jeppe's intrinsics patch, mainly r31135 2020-01-14 21:52:39 +00:00
Makefile.fpc * first part of merging parts of Jeppe's intrinsics patch, mainly r31135 2020-01-14 21:52:39 +00:00
MPWMake
msgidx.inc * regenerate msg*.inc files after adding a new error message related to C blocks 2019-12-14 16:45:42 +00:00
msgtxt.inc * regenerate msg*.inc files after adding a new error message related to C blocks 2019-12-14 16:45:42 +00:00
nadd.pas * write a proper error message if <int>/<int> is encountered while no 2019-12-25 18:09:30 +00:00
nbas.pas
ncal.pas * do not optimize inline nodes which are part of call node which has an init and/or cleanup block, resolves #36323 2019-11-21 22:15:06 +00:00
ncgadd.pas
ncgbas.pas * adapt register if the size of the paraloc and the register differ, resolves #34409 2019-11-30 20:37:55 +00:00
ncgcal.pas * renamed getintparaloc to getcgtempparaloc 2019-12-24 22:12:25 +00:00
ncgcnv.pas
ncgcon.pas
ncgflw.pas * renamed getintparaloc to getcgtempparaloc 2019-12-24 22:12:25 +00:00
ncghlmat.pas
ncginl.pas * first part of merging parts of Jeppe's intrinsics patch, mainly r31135 2020-01-14 21:52:39 +00:00
ncgld.pas * renamed getintparaloc to getcgtempparaloc 2019-12-24 22:12:25 +00:00
ncgmat.pas * renamed getintparaloc to getcgtempparaloc 2019-12-24 22:12:25 +00:00
ncgmem.pas * renamed getintparaloc to getcgtempparaloc 2019-12-24 22:12:25 +00:00
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * added is_normal_fieldvarsym() helper and use it 2019-12-24 22:12:44 +00:00
ncgset.pas
ncgutil.pas * first part of merging parts of Jeppe's intrinsics patch, mainly r31135 2020-01-14 21:52:39 +00:00
ncgvmt.pas * apply (adjusted) patch by Blaise.ru: vmtentries is always created since 2008, so treat it as such (also fixes a memory leak in tobjectdef.getcopy) 2019-12-02 06:59:05 +00:00
ncnv.pas * support nf_internal to ignore currency conversion adjustments also on 2019-12-30 15:05:02 +00:00
ncon.pas * do not crash when an unsupported code page is encountered, resolves #35581 2019-12-23 21:44:50 +00:00
nflw.pas * moved conversion of for into while loops in a separate pass, so node optimizations on the node tree can be 2020-01-11 16:08:45 +00:00
ngenutil.pas * cleaned up safecall support: use a hidden localvarsym instead of result 2019-11-24 20:23:22 +00:00
ngtcon.pas
ninl.pas * first part of merging parts of Jeppe's intrinsics patch, mainly r31135 2020-01-14 21:52:39 +00:00
nld.pas * unified loadnf_load_self_pointer into loadnf_load_addr 2019-12-30 22:43:10 +00:00
nmat.pas * restored original behaviour of shl/shr constant evaluation outside 2019-11-22 21:12:00 +00:00
nmem.pas * correctly handle reading of class/object pointers in combination with @, resolves #26326 2019-12-28 17:59:23 +00:00
nobj.pas * more correct method names (based on patch by Blaise.ru) 2019-12-11 22:43:00 +00:00
nobjc.pas
node.pas * when copying goto nodes take care if the label node is part of the copied tree 2019-12-25 17:10:14 +00:00
nopt.pas
nset.pas * last commit was not complete/earlier version committed 2019-12-23 23:07:26 +00:00
nutils.pas * fixed (harmless) wrong typecast 2020-01-01 19:19:15 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas * use translateable error messages for undefined symbols and also report in which object file the symbol was first found 2019-11-21 21:45:11 +00:00
ogcoff.pas
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
ogomf.pas
omfbase.pas
optbase.pas + CalcUseSum: calculates a sum of all use sets of the current node and its children 2020-01-10 21:34:29 +00:00
optconstprop.pas
optcse.pas * cse adjusted 2019-11-16 14:07:59 +00:00
optdead.pas
optdeadstore.pas
optdfa.pas * moved conversion of for into while loops in a separate pass, so node optimizations on the node tree can be 2020-01-11 16:08:45 +00:00
options.pas * Make Win32 SEH support enabled by default. If necessary to disable, compiler should be cycled with OPT=-dDISABLE_WIN32_SEH. Mantis #12974. 2020-01-01 14:43:57 +00:00
optloadmodifystore.pas
optloop.pas * more fixes for loop strength reduction 2020-01-11 20:37:05 +00:00
opttail.pas * voidcodepointertype => voidpointertype as suggested by Pierre 2020-01-18 21:51:27 +00:00
optutils.pas * more fixes for loop strength reduction 2020-01-11 20:37:05 +00:00
optvirt.pas
owar.pas
owbase.pas
owomflib.pas
parabase.pas
paramgr.pas * renamed getintparaloc to getcgtempparaloc 2019-12-24 22:12:25 +00:00
parser.pas Set default stack size for i8086-embedded target: 16384 for far data model, and 2048 for other memory models 2019-11-28 14:50:55 +00:00
pass_1.pas
pass_2.pas
pbase.pas
pcp.pas
pdecl.pas * rework syntax for cblocks: now a cblock directive is required 2019-12-14 16:45:38 +00:00
pdecobj.pas
pdecsub.pas * rework syntax for cblocks: now a cblock directive is required 2019-12-14 16:45:38 +00:00
pdecvar.pas
pexports.pas
pexpr.pas * better error recovery, resolves #36397 2019-12-05 20:46:50 +00:00
pgentype.pas
pgenutil.pas * fix for Mantis #36496: correctly handle the function result alias variable inside generic functions 2019-12-30 21:35:26 +00:00
pinline.pas
pkgutil.pas * keep track of static symbols that a global function references, as those must now be exported from a dynamic package as well if the function can potentially be inlined 2019-11-21 21:44:53 +00:00
pmodules.pas * use a different name for the packages' entry point and use _DLLMainCRTStartup as an alias to avoid problems with the C-prefix 2019-11-21 21:45:18 +00:00
pp.lpi
pp.pas
pparautl.pas * Fixed safecall on win32 with -Ooregvar by making sure that $safecallresult 2020-01-05 23:20:52 +00:00
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcriscv32.lpi
ppcriscv64.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcx64.lpi
ppcx64llvm.lpi
ppheap.pas
ppu.pas
procdefutil.pas
procinfo.pas * keep track of static symbols that a global function references, as those must now be exported from a dynamic package as well if the function can potentially be inlined 2019-11-21 21:44:53 +00:00
psabiehpi.pas * renamed getintparaloc to getcgtempparaloc 2019-12-24 22:12:25 +00:00
pstatmnt.pas * fix for #36554 2020-01-11 21:15:19 +00:00
psub.pas * ensure the rtl and the packages for embedded compile with features exceptions and classes disabled 2020-01-13 21:20:03 +00:00
psystem.pas * first part of merging parts of Jeppe's intrinsics patch, mainly r31135 2020-01-14 21:52:39 +00:00
ptconst.pas * ensure that nothing assembly related is generated for generics when a typed constant (this also includes local variable initializations) are parsed 2019-11-21 21:44:16 +00:00
ptype.pas * better error recovery, resolves #36377 2019-11-29 22:13:17 +00:00
raatt.pas
rabase.pas
rasm.pas
rautils.pas
README.txt
rescmn.pas
rgbase.pas
rgobj.pas * AVR: fixes pushing and handling of stack passed parameters 2020-01-19 15:55:21 +00:00
scandir.pas
scanner.pas
switches.pas
symbase.pas * also check for Nil symtables in tsymtable.includeoption 2019-11-24 00:04:27 +00:00
symconst.pas * record whether a function uses fastmath, and define the function as 2019-12-30 15:05:06 +00:00
symcreat.pas * when creating the static field of a generic, insert it into the generic instead of the global symtable as it isn't really used anyway 2019-11-21 21:44:43 +00:00
symdef.pas * first part of merging parts of Jeppe's intrinsics patch, mainly r31135 2020-01-14 21:52:39 +00:00
symsym.pas * first part of merging parts of Jeppe's intrinsics patch, mainly r31135 2020-01-14 21:52:39 +00:00
symtable.pas * added is_normal_fieldvarsym() helper and use it 2019-12-24 22:12:44 +00:00
symtype.pas + add a method to tdef to initialize the defid from within a constructor 2019-12-02 06:58:47 +00:00
symutil.pas * added is_normal_fieldvarsym() helper and use it 2019-12-24 22:12:44 +00:00
syscinfo.pas
systems.inc * renamed abi_linux386_sysv to abi_i386_dynalignedstack, and also use it 2019-12-05 19:38:01 +00:00
systems.pas + tf_init_final_units_by_calls 2019-12-24 16:14:30 +00:00
tgobj.pas
tokens.pas * rework syntax for cblocks: now a cblock directive is required 2019-12-14 16:45:38 +00:00
verbose.pas
version.pas
widestr.pas * some cleanup 2019-12-23 21:52:06 +00:00
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