fpc/compiler
nickysn 988b742d71 * avoid the meaningless conversion of the right shl/shr argument to 32-bit on
i8086 in the cases when the left argument is 32-bit.

git-svn-id: trunk@26349 -
2014-01-01 19:03:17 +00:00
..
aarch64
alpha
arm Use optimize_op_const in ARM cg 2014-01-01 18:26:42 +00:00
avr
generic
html
i386
i8086 * perform the OP_AND, OP_OR and OP_XOR optimizations for 0 and $FFFF values 2014-01-01 17:45:40 +00:00
ia64
jvm
m68k
mips
msg
powerpc
powerpc64
ppcgen
sparc + SPARC: support optimized 32x32 to 64 bit multiplications. 2013-12-30 23:40:47 +00:00
systems
utils
vis
x86
x86_64
aasmbase.pas
aasmdata.pas
aasmsym.pas
aasmtai.pas
aggas.pas * changed some Objective-C section declarations to match what's outputted by 2013-12-31 00:28:41 +00:00
agjasmin.pas
aopt.pas
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas
asmutils.pas
assemble.pas
browcol.pas
bsdcompile
catch.pas
ccharset.pas
cclasses.pas
cfidwarf.pas
cfileutl.pas
cg64f32.pas
cgbase.pas
cghlcpu.pas
cgobj.pas
cgutils.pas
cmsgs.pas
comphook.pas
compiler.pas
compinnr.inc
comprsrc.pas
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas
cstreams.pas
cutils.pas
cwindirs.pp
dbgbase.pas
dbgdwarf.pas
dbgstabs.pas
dbgstabx.pas
defcmp.pas
defutil.pas
dirparse.pas
elfbase.pas
export.pas
expunix.pas
finput.pas
fmodule.pas
fpccrc.pas
fpcdefs.inc
fppu.pas
gendef.pas
globals.pas
globstat.pas
globtype.pas
hlcg2ll.pas * generate shorter code on 8-bit and 16-bit CPUs in thlcg2ll.location_force_reg, 2013-12-29 19:07:35 +00:00
hlcgobj.pas
htypechk.pas
impdef.pas
import.pas
ldscript.pas
link.pas
macho.pas
machoutils.pas
Makefile
Makefile.fpc
MPWMake
msgidx.inc
msgtxt.inc
nadd.pas * taddnode.pass_1: set correctly expectloc to LOC_JUMP or LOC_FLAGS for compare 2013-12-31 16:22:24 +00:00
nbas.pas
ncal.pas + Two more checks for access to global data and setting the pi_needs_got flag, intended for targets that require decision about PIC code generation strictly before pass 2. 2013-12-27 13:41:36 +00:00
ncgadd.pas
ncgbas.pas
ncgcal.pas
ncgcnv.pas
ncgcon.pas
ncgflw.pas
ncginl.pas
ncgld.pas * fixed the conversion and assignment to the 64-bit boolean types on the i8086 2013-12-31 17:18:20 +00:00
ncgmat.pas * avoid the meaningless conversion of the right shl/shr argument to 32-bit on 2014-01-01 19:03:17 +00:00
ncgmem.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas
ncgset.pas
ncgutil.pas * fixed the handling of OS_PAIR/OS_SPAIR-sized parameters in ncgutil.gen_load_cgpara_loc. This fixes 32-bit regvar'd parameters on i8086. 2013-12-24 23:07:44 +00:00
ncgvmt.pas
ncnv.pas * do not convert a boolean to a 32 bit int first when converting to a 64 bit int, this causes data loss when casting e.g. a qwordbool to a qword 2013-12-28 20:19:51 +00:00
ncon.pas
nflw.pas * move setting of lnf_testatbegin into tfornode.simplify because it is a simplification 2013-12-31 13:16:06 +00:00
ngenutil.pas
ngtcon.pas
ninl.pas + support for arbitrary encodings in readstr/writestr 2013-12-29 19:18:49 +00:00
nld.pas
nmat.pas * use new shl/shr constant folding (of r26295) only if forinline is set 2013-12-29 14:09:03 +00:00
nmem.pas
nobj.pas
nobjc.pas
node.pas + pointerconstn is also a constant node 2013-12-28 20:20:00 +00:00
nopt.pas
nset.pas
nstate.pas
nutils.pas
objcdef.pas
objcgutl.pas * changed some random data label names to match the label names outputted by 2013-12-31 00:28:46 +00:00
objcutil.pas
ogbase.pas
ogcoff.pas
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
optbase.pas
optconstprop.pas * propagate constants into the header of a for loop 2013-12-31 13:16:09 +00:00
optcse.pas
optdead.pas
optdeadstore.pas * be more careful when removing dead stores 2013-12-28 20:19:42 +00:00
optdfa.pas
options.pas
optloop.pas
opttail.pas
optutils.pas * set successor node for load nodes as well, they can be generated when inlining 2013-12-28 20:19:38 +00:00
optvirt.pas
owar.pas
owbase.pas
parabase.pas
paramgr.pas
parser.pas
pass_1.pas
pass_2.pas
pbase.pas
pdecl.pas
pdecobj.pas
pdecsub.pas
pdecvar.pas
pexports.pas
pexpr.pas
pgenutil.pas
pinline.pas
pmodules.pas
pp.lpi
pp.pas
pparautl.pas
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas
ppx86_64.lpi
procinfo.pas
pstatmnt.pas
psub.pas
psystem.pas
ptconst.pas
ptype.pas
raatt.pas
rabase.pas
rasm.pas
rautils.pas
README.txt
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas
scandir.pas
scanner.pas
script.pas
switches.pas
symbase.pas
symconst.pas
symcreat.pas
symdef.pas * moved a bunch of tprocdef fields that are only required when compiling the 2013-12-31 00:28:28 +00:00
symnot.pas
symsym.pas
symtable.pas
symtype.pas
symutil.pas
systems.inc
systems.pas
tgobj.pas
tokens.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