fpcdefs.inc 2.0 KB

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