fpcdefs.inc 1.7 KB

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