fpcdefs.inc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. {$ifdef FPC}
  2. {$mode objfpc}
  3. {$asmmode default}
  4. {$H-}
  5. {$goto on}
  6. {$inline on}
  7. { 1Mb stack }
  8. {$MEMORY 1000000}
  9. { This reduces the memory requirements a lot }
  10. {$PACKENUM 1}
  11. {$ifndef VER1_0}
  12. { We don't use exceptions, so turn off the implicit
  13. exceptions in the constructors }
  14. {$IMPLICITEXCEPTIONS OFF}
  15. { Inline small functions, but not when EXTDEBUG is used }
  16. {$ifndef EXTDEBUG}
  17. {$define USEINLINE}
  18. {$endif EXTDEBUG}
  19. {$else}
  20. { Optimizer is broken when compiling with optimizations using 1.0.x }
  21. {$ifndef USEOPT}
  22. {$define NOOPT}
  23. {$endif}
  24. { 1.0.x generates broken code for sysutils }
  25. {$ifndef FORCE_SYSUTILS}
  26. {$undef USE_SYSUTILS}
  27. {$endif}
  28. {$endif VER1_0}
  29. {$ifdef VER1_9_4}
  30. { 1.9.4 generates broken code for sysutils }
  31. {$ifndef FORCE_SYSUTILS}
  32. {$undef USE_SYSUTILS}
  33. {$endif}
  34. {$endif}
  35. {$define USEEXCEPT}
  36. {$ifdef cpuarm}
  37. {$packrecords c}
  38. {$endif cpuarm}
  39. {$endif}
  40. {$ifdef i386}
  41. {$define x86}
  42. {$define cpuflags}
  43. {$define cpuextended}
  44. {$define USECMOV}
  45. {$endif i386}
  46. {$ifdef x86_64}
  47. {$define x86}
  48. {$define cpuflags}
  49. {$define cpu64bit}
  50. {$define cpuextended}
  51. {$define cpufloat128}
  52. {$define cputargethasfixedstack}
  53. {$define USECMOV}
  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. {$endif powerpc}
  67. {$ifdef arm}
  68. {$define cpuflags}
  69. {$define cpuneedsdiv32helper}
  70. {$define cputargethasfixedstack}
  71. {$define cpurequiresproperalignment}
  72. {$endif arm}
  73. {$ifdef m68k}
  74. {$define cpuflags}
  75. {$define cpufpemu}
  76. {$endif m68k}
  77. {$IFDEF MACOS}
  78. {$DEFINE MACOS_USE_FAKE_SYSUTILS}
  79. {$ENDIF MACOS}