fpcdefs.inc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. {$endif i386}
  36. {$ifdef x86_64}
  37. {$define x86}
  38. {$define cpuflags}
  39. {$define cpu64bit}
  40. {$define cpuextended}
  41. {$define cpufloat128}
  42. {$define cputargethasfixedstack}
  43. {$define USECMOV}
  44. {$endif x86_64}
  45. {$ifdef alpha}
  46. {$define cpu64bit}
  47. {$endif alpha}
  48. {$ifdef sparc}
  49. {$define cpuflags}
  50. {$define cputargethasfixedstack}
  51. {$define cpurequiresproperalignment}
  52. {$endif sparc}
  53. {$ifdef powerpc}
  54. {$define cpuflags}
  55. {$define cputargethasfixedstack}
  56. {$endif powerpc}
  57. {$ifdef arm}
  58. {$define cpuflags}
  59. {$define cpuneedsdiv32helper}
  60. {$define cputargethasfixedstack}
  61. {$define cpurequiresproperalignment}
  62. {$endif arm}
  63. {$ifdef m68k}
  64. {$define cpuflags}
  65. {$define cpufpemu}
  66. {$endif m68k}
  67. {$IFDEF MACOS}
  68. {$DEFINE MACOS_USE_FAKE_SYSUTILS}
  69. {$ENDIF MACOS}