fpcdefs.inc 1.7 KB

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