fpcdefs.inc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. { $define USE_PACKSET1}
  25. {$endif}
  26. {$endif FPC_HAS_VARSETS}
  27. {$ifdef USE_PACKSET1}
  28. {$PACKSET 1}
  29. {$endif USE_PACKSET1}
  30. { We don't use exceptions, so turn off the implicit
  31. exceptions in the constructors }
  32. {$IMPLICITEXCEPTIONS OFF}
  33. { Inline small functions, but not when EXTDEBUG is used }
  34. {$ifndef EXTDEBUG}
  35. {$define USEINLINE}
  36. {$endif EXTDEBUG}
  37. {$define USEEXCEPT}
  38. {$ifdef cpuarm}
  39. {$packrecords c}
  40. {$endif cpuarm}
  41. {$ifdef i386}
  42. {$define x86}
  43. {$define cpuflags}
  44. {$define cpuextended}
  45. {$define USECMOV}
  46. {$define SUPPORT_MMX}
  47. {$define cpumm}
  48. {$define fewintregisters}
  49. {$endif i386}
  50. {$ifdef x86_64}
  51. {$define x86}
  52. {$define cpuflags}
  53. {$define cpu64bit}
  54. {$define cpuextended}
  55. {$define cpufloat128}
  56. {$define cputargethasfixedstack}
  57. {$define USECMOV}
  58. {$define cpumm}
  59. {$endif x86_64}
  60. {$ifdef alpha}
  61. {$define cpu64bit}
  62. {$endif alpha}
  63. {$ifdef sparc}
  64. {$define cpuflags}
  65. {$define cputargethasfixedstack}
  66. {$define cpurequiresproperalignment}
  67. {$endif sparc}
  68. {$ifdef powerpc}
  69. {$define cpuflags}
  70. {$define cputargethasfixedstack}
  71. {$define cpumm}
  72. {$endif powerpc}
  73. {$ifdef powerpc64}
  74. {$define cpu64bit}
  75. {$define cpuflags}
  76. {$define cputargethasfixedstack}
  77. {$define cpumm}
  78. {$define cpurequiresproperalignment}
  79. {$endif powerpc64}
  80. {$ifdef arm}
  81. {$define cpuflags}
  82. {$define cpufpemu}
  83. {$define cpuneedsdiv32helper}
  84. {$define cputargethasfixedstack}
  85. {$define cpurequiresproperalignment}
  86. {$endif arm}
  87. {$ifdef m68k}
  88. {$define cpuflags}
  89. {$define cpufpemu}
  90. {$endif m68k}
  91. {$IFDEF MACOS}
  92. {$DEFINE USE_FAKE_SYSUTILS}
  93. {$ENDIF MACOS}
  94. {$define SUPPORT_UNALIGNED}