fpcdefs.inc 1.9 KB

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