fpcdefs.inc 1.9 KB

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