fpcdefs.inc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. {$mode objfpc}
  2. {$asmmode default}
  3. {$H-}
  4. {$goto on}
  5. {$inline on}
  6. {$interfaces corba}
  7. { This reduces the memory requirements a lot }
  8. {$PACKENUM 1}
  9. {$ifdef FPC_HAS_VARSETS}
  10. {$ifndef FPC_BIG_ENDIAN}
  11. { $define USE_PACKSET1}
  12. {$endif}
  13. {$endif FPC_HAS_VARSETS}
  14. {$ifdef USE_PACKSET1}
  15. {$PACKSET 1}
  16. {$endif USE_PACKSET1}
  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. { If anyone wants to use interrupt for
  26. a specific target, add a
  27. $define FPC_HAS_SYSTEMS_INTERRUPT_TABLE
  28. to fpcdefs.inc to reactivate
  29. the corresponding code }
  30. {$undef FPC_HAS_SYSTEMS_INTERRUPT_TABLE}
  31. { This fake CPU is used to allow incorporation of globtype unit
  32. into utils/ppudump without any CPU specific code PM }
  33. {$ifdef generic_cpu}
  34. {$define cpu32bit}
  35. {$define cpu32bitaddr}
  36. {$define cpu32bitalu}
  37. {$define cpuflags}
  38. {$define cpuextended}
  39. {$endif generic_cpu}
  40. {$ifdef cpuarm}
  41. {$packrecords c}
  42. {$endif cpuarm}
  43. {$ifdef i386}
  44. {$define cpu32bit}
  45. {$define cpu32bitaddr}
  46. {$define cpu32bitalu}
  47. {$define x86}
  48. {$define cpuflags}
  49. {$define cpuextended}
  50. {$define SUPPORT_MMX}
  51. {$define cpumm}
  52. {$define fewintregisters}
  53. {$endif i386}
  54. {$ifdef x86_64}
  55. {$define x86}
  56. {$define cpuflags}
  57. {$define cpu64bitalu}
  58. {$define cpu64bitaddr}
  59. {$define cpuextended}
  60. {$define cpufloat128}
  61. {$define cputargethasfixedstack}
  62. {$define cpumm}
  63. {$endif x86_64}
  64. {$ifdef alpha}
  65. {$define cpu64bitalu}
  66. {$define cpu64bitaddr}
  67. {$endif alpha}
  68. {$ifdef sparc}
  69. {$define cpu32bit}
  70. {$define cpu32bitaddr}
  71. {$define cpu32bitalu}
  72. {$define cpuflags}
  73. {$define cputargethasfixedstack}
  74. {$endif sparc}
  75. {$ifdef powerpc}
  76. {$define cpu32bit}
  77. {$define cpu32bitaddr}
  78. {$define cpu32bitalu}
  79. {$define cpuflags}
  80. {$define cputargethasfixedstack}
  81. {$define cpumm}
  82. {$endif powerpc}
  83. {$ifdef powerpc64}
  84. {$define cpu64bitalu}
  85. {$define cpu64bitaddr}
  86. {$define cpuflags}
  87. {$define cputargethasfixedstack}
  88. {$define cpumm}
  89. {$endif powerpc64}
  90. {$ifdef arm}
  91. {$define cpu32bit}
  92. {$define cpu32bitaddr}
  93. {$define cpu32bitalu}
  94. {$define cpuflags}
  95. {$define cpufpemu}
  96. {$define cpuneedsdiv32helper}
  97. {$define cputargethasfixedstack}
  98. { inherit FPC_ARMEL? }
  99. {$if defined(CPUARMEL) and not(defined(FPC_OARM)) and not(defined(FPC_ARMEB))}
  100. {$define FPC_ARMEL}
  101. {$endif}
  102. { inherit FPC_ARMEB? }
  103. {$if defined(CPUARMEB) and not(defined(FPC_OARM)) and not(defined(FPC_ARMEL))}
  104. {$define FPC_ARMEB}
  105. {$endif}
  106. {$endif arm}
  107. {$ifdef m68k}
  108. {$define cpu32bit}
  109. {$define cpu32bitaddr}
  110. {$define cpu32bitalu}
  111. {$define cpuflags}
  112. {$define cpufpemu}
  113. {$endif m68k}
  114. {$ifdef avr}
  115. {$define cpu8bit}
  116. {$define cpu16bitaddr}
  117. {$define cpu8bitalu}
  118. {$define cpuflags}
  119. {$define cpunofpu}
  120. {$define cpunodefaultint}
  121. {$define cpuneedsdiv32helper}
  122. {$define cpuneedsmulhelper}
  123. {$endif avr}
  124. {$ifdef mipsel}
  125. {$define mips}
  126. {$endif mipsel}
  127. {$ifdef mips}
  128. {$define cpu32bitalu}
  129. {$define cpu32bitaddr}
  130. { $define cpuflags}
  131. {$define cputargethasfixedstack}
  132. {$define cpurequiresproperalignment}
  133. {$define cpumm}
  134. {$endif mips}
  135. {$IFDEF MACOS}
  136. {$DEFINE USE_FAKE_SYSUTILS}
  137. {$ENDIF MACOS}
  138. {$if not defined(FPC_HAS_TYPE_EXTENDED) and defined(i386)}
  139. {$error Cross-compiling from systems without support for an 80 bit extended floating point type to i386 is not yet supported at this time }
  140. {$endif}