fpcdefs.inc 1.9 KB

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