README 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. This directory contains the sources of the Free Pascal Compiler
  2. If you want to compile/modify the compiler, please read first the
  3. programmers manual.
  4. To recompile the compiler, you can use the batch files :
  5. + mppc386.bat if you want to build a cross compiler from i386 to m68k
  6. + mppcsparc if you want to build a cross compiler from i386 to SPARC
  7. or
  8. Use the make utility as following
  9. make OS_TARGET="compiler OS target" \
  10. CPU_TARGET="compiler CPU target" \
  11. FPCCPUOPT="Optimization level" \
  12. PP="compiler used to compile FPC" \
  13. COMPILER_OPTIONS="Options passed to compiler" \
  14. If an option is omitted, then target CPU/OS will be same as current CPU/OS
  15. Possibles targets are : linux go32v2 win32 os2 freebsd beos netbsd amiga
  16. atari sunos qnx netware openbsd wdosx palmos macos macosx emx
  17. Possible compiler switches (* marks a currently required switch):
  18. -----------------------------------------------------------------
  19. GDB* support of the GNU Debugger
  20. I386 generate a compiler for the Intel i386+
  21. x86_64 generate a compiler for the AMD x86-64 architecture
  22. M68K generate a compiler for the M68000
  23. SPARC generate a compiler for SPARC
  24. POWERPC generate a compiler for the PowerPC
  25. VIS generate a compile for the VIS
  26. DEBUG version with debug code is generated
  27. EXTDEBUG some extra debug code is executed
  28. SUPPORT_MMX only i386: releases the compiler switch
  29. MMX which allows the compiler to generate
  30. MMX instructions
  31. EXTERN_MSG Don't compile the msgfiles in the compiler, always
  32. use external messagefiles, default for TP
  33. NOAG386INT no Intel Assembler output
  34. NOAG386NSM no NASM output
  35. NOAG386BIN leaves out the binary writer, default for TP
  36. NORA386DIR No direct i386 assembler reader
  37. TEST_GENERIC Test Generic version of code generator
  38. (uses generic RTL calls)
  39. -----------------------------------------------------------------
  40. cpuflags The target processor has status flags (on by default)
  41. cpufpemu The target compiler will also support emitting software
  42. floating point operations
  43. cpu64bit The target is a 64-bit processor
  44. -----------------------------------------------------------------
  45. Required switches for a i386 compiler be compiled by Free Pascal Compiler:
  46. GDB;I386
  47. to build a compiler to SPARC target using a Win32/i386 you just use :
  48. make CPU_TARGET=SPARC