fpcdefs.inc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {$ifdef FPC}
  2. {$mode objfpc}
  3. {$asmmode default}
  4. {$H-}
  5. {$goto on}
  6. {$inline on}
  7. { 1Mb stack }
  8. {$MEMORY 1000000}
  9. { This reduces the memory requirements a lot }
  10. {$PACKENUM 1}
  11. { We don't use exceptions, so turn off the implicit
  12. exceptions in the constructors }
  13. {$IMPLICITEXCEPTIONS OFF}
  14. { Inline small functions, but not when EXTDEBUG is used }
  15. {$ifndef EXTDEBUG}
  16. {$define USEINLINE}
  17. {$endif EXTDEBUG}
  18. {$define USEEXCEPT}
  19. {$ifdef cpuarm}
  20. {$packrecords c}
  21. {$endif cpuarm}
  22. {$endif}
  23. {$ifdef i386}
  24. {$define x86}
  25. {$define cpuflags}
  26. {$define cpuextended}
  27. {$define USECMOV}
  28. {$endif i386}
  29. {$ifdef x86_64}
  30. {$define x86}
  31. {$define cpuflags}
  32. {$define cpu64bit}
  33. {$define cpuextended}
  34. {$define cpufloat128}
  35. {$define cputargethasfixedstack}
  36. {$define USECMOV}
  37. {$endif x86_64}
  38. {$ifdef alpha}
  39. {$define cpu64bit}
  40. {$endif alpha}
  41. {$ifdef sparc}
  42. {$define cpuflags}
  43. {$define cputargethasfixedstack}
  44. {$define cpurequiresproperalignment}
  45. {$endif sparc}
  46. {$ifdef powerpc}
  47. {$define cpuflags}
  48. {$define cputargethasfixedstack}
  49. {$endif powerpc}
  50. {$ifdef arm}
  51. {$define cpuflags}
  52. {$define cpuneedsdiv32helper}
  53. {$define cputargethasfixedstack}
  54. {$define cpurequiresproperalignment}
  55. {$endif arm}
  56. {$ifdef m68k}
  57. {$define cpuflags}
  58. {$define cpufpemu}
  59. {$endif m68k}
  60. {$IFDEF MACOS}
  61. {$DEFINE MACOS_USE_FAKE_SYSUTILS}
  62. {$ENDIF MACOS}