fpcdefs.inc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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 cpu32bit}
  43. {$define x86}
  44. {$define cpuflags}
  45. {$define cpuextended}
  46. {$define USECMOV}
  47. {$define SUPPORT_MMX}
  48. {$define cpumm}
  49. {$define fewintregisters}
  50. {$endif i386}
  51. {$ifdef x86_64}
  52. {$define x86}
  53. {$define cpuflags}
  54. {$define cpu64bitalu}
  55. {$define cpu64bitaddr}
  56. {$define cpuextended}
  57. {$define cpufloat128}
  58. {$define cputargethasfixedstack}
  59. {$define USECMOV}
  60. {$define cpumm}
  61. {$endif x86_64}
  62. {$ifdef alpha}
  63. {$define cpu64bitalu}
  64. {$define cpu64bitaddr}
  65. {$endif alpha}
  66. {$ifdef sparc}
  67. {$define cpu32bit}
  68. {$define cpuflags}
  69. {$define cputargethasfixedstack}
  70. {$endif sparc}
  71. {$ifdef powerpc}
  72. {$define cpu32bit}
  73. {$define cpuflags}
  74. {$define cputargethasfixedstack}
  75. {$define cpumm}
  76. {$endif powerpc}
  77. {$ifdef powerpc64}
  78. {$define cpu64bitalu}
  79. {$define cpu64bitaddr}
  80. {$define cpuflags}
  81. {$define cputargethasfixedstack}
  82. {$define cpumm}
  83. {$endif powerpc64}
  84. {$ifdef arm}
  85. {$define cpu32bit}
  86. {$define cpuflags}
  87. {$define cpufpemu}
  88. {$define cpuneedsdiv32helper}
  89. {$define cputargethasfixedstack}
  90. {$endif arm}
  91. {$ifdef m68k}
  92. {$define cpu32bit}
  93. {$define cpuflags}
  94. {$define cpufpemu}
  95. {$endif m68k}
  96. {$ifdef avr}
  97. {$define cpu16bit}
  98. {$define cpuflags}
  99. {$define cpunofpu}
  100. {$define cpunodefaultint}
  101. {$endif avr}
  102. {$IFDEF MACOS}
  103. {$DEFINE USE_FAKE_SYSUTILS}
  104. {$ENDIF MACOS}
  105. {$define SUPPORT_UNALIGNED}
  106. {$if not defined(cpui386) and defined(i386)}
  107. {$error Cross-compiling from non-i386 to i386 is not yet supported at this time }
  108. {$endif}