fpcdefs.inc 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {$mode objfpc}
  2. {$asmmode default}
  3. {$H-}
  4. {$goto on}
  5. {$inline on}
  6. { This reduces the memory requirements a lot }
  7. {$PACKENUM 1}
  8. {$ifdef FPC_HAS_VARSETS}
  9. {$ifndef FPC_BIG_ENDIAN}
  10. { $define USE_PACKSET1}
  11. {$endif}
  12. {$endif FPC_HAS_VARSETS}
  13. {$ifdef USE_PACKSET1}
  14. {$PACKSET 1}
  15. {$endif USE_PACKSET1}
  16. { We don't use exceptions, so turn off the implicit
  17. exceptions in the constructors }
  18. {$IMPLICITEXCEPTIONS OFF}
  19. { Inline small functions, but not when EXTDEBUG is used }
  20. {$ifndef EXTDEBUG}
  21. {$define USEINLINE}
  22. {$endif EXTDEBUG}
  23. {$define USEEXCEPT}
  24. {$ifdef cpuarm}
  25. {$packrecords c}
  26. {$endif cpuarm}
  27. {$ifdef i386}
  28. {$define x86}
  29. {$define cpuflags}
  30. {$define cpuextended}
  31. {$define USECMOV}
  32. {$define SUPPORT_MMX}
  33. {$define cpumm}
  34. {$define fewintregisters}
  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. {$define cpumm}
  45. {$endif x86_64}
  46. {$ifdef alpha}
  47. {$define cpu64bit}
  48. {$endif alpha}
  49. {$ifdef sparc}
  50. {$define cpuflags}
  51. {$define cputargethasfixedstack}
  52. {$endif sparc}
  53. {$ifdef powerpc}
  54. {$define cpuflags}
  55. {$define cputargethasfixedstack}
  56. {$define cpumm}
  57. {$endif powerpc}
  58. {$ifdef powerpc64}
  59. {$define cpu64bit}
  60. {$define cpuflags}
  61. {$define cputargethasfixedstack}
  62. {$define cpumm}
  63. {$endif powerpc64}
  64. {$ifdef arm}
  65. {$define cpuflags}
  66. {$define cpufpemu}
  67. {$define cpuneedsdiv32helper}
  68. {$define cputargethasfixedstack}
  69. {$endif arm}
  70. {$ifdef m68k}
  71. {$define cpuflags}
  72. {$define cpufpemu}
  73. {$endif m68k}
  74. {$IFDEF MACOS}
  75. {$DEFINE USE_FAKE_SYSUTILS}
  76. {$ENDIF MACOS}
  77. {$define SUPPORT_UNALIGNED}
  78. {$if not defined(cpui386) and defined(i386)}
  79. {$error Cross-compiling from non-i386 to i386 is not yet supported at this time }
  80. {$endif}