fpcdefs.inc 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. {$define cpurox}
  54. {$endif i386}
  55. {$ifdef x86_64}
  56. {$define x86}
  57. {$define cpuflags}
  58. {$define cpu64bitalu}
  59. {$define cpu64bitaddr}
  60. {$define cpuextended}
  61. {$define cpufloat128}
  62. {$define cputargethasfixedstack}
  63. {$define cpumm}
  64. {$define cpurox}
  65. {$endif x86_64}
  66. {$ifdef alpha}
  67. {$define cpu64bitalu}
  68. {$define cpu64bitaddr}
  69. {$endif alpha}
  70. {$ifdef sparc}
  71. {$define cpu32bit}
  72. {$define cpu32bitaddr}
  73. {$define cpu32bitalu}
  74. {$define cpuflags}
  75. {$define cputargethasfixedstack}
  76. {$endif sparc}
  77. {$ifdef powerpc}
  78. {$define cpu32bit}
  79. {$define cpu32bitaddr}
  80. {$define cpu32bitalu}
  81. {$define cpuflags}
  82. {$define cputargethasfixedstack}
  83. {$define cpumm}
  84. {$define cpurox}
  85. {$endif powerpc}
  86. {$ifdef powerpc64}
  87. {$define cpu64bitalu}
  88. {$define cpu64bitaddr}
  89. {$define cpuflags}
  90. {$define cputargethasfixedstack}
  91. {$define cpumm}
  92. {$define cpurox}
  93. {$endif powerpc64}
  94. {$ifdef arm}
  95. {$define cpu32bit}
  96. {$define cpu32bitaddr}
  97. {$define cpu32bitalu}
  98. {$define cpuflags}
  99. {$define cpufpemu}
  100. {$define cpuneedsdiv32helper}
  101. {$define cpurox}
  102. {$define cputargethasfixedstack}
  103. { default to armel }
  104. {$if not(defined(CPUARM)) and not(defined(CPUARMEB)) and not(defined(FPC_OARM)) and not(defined(FPC_ARMEB))}
  105. {$define FPC_ARMEL}
  106. {$endif}
  107. { inherit FPC_ARMEL? }
  108. {$if defined(CPUARMEL) and not(defined(FPC_OARM)) and not(defined(FPC_ARMEB))}
  109. {$define FPC_ARMEL}
  110. {$endif}
  111. { inherit FPC_ARMEB? }
  112. {$if defined(CPUARMEB) and not(defined(FPC_OARM)) and not(defined(FPC_ARMEL))}
  113. {$define FPC_ARMEB}
  114. {$endif}
  115. {$endif arm}
  116. {$ifdef m68k}
  117. {$define cpu32bit}
  118. {$define cpu32bitaddr}
  119. {$define cpu32bitalu}
  120. {$define cpuflags}
  121. {$define cpufpemu}
  122. {$endif m68k}
  123. {$ifdef avr}
  124. {$define cpu8bit}
  125. {$define cpu16bitaddr}
  126. {$define cpu8bitalu}
  127. {$define cpuflags}
  128. {$define cpunofpu}
  129. {$define cpunodefaultint}
  130. {$define cpuneedsdiv32helper}
  131. {$define cpuneedsmulhelper}
  132. {$endif avr}
  133. {$ifdef mipsel}
  134. {$define mips}
  135. {$endif mipsel}
  136. {$ifdef mips}
  137. {$define cpu32bit}
  138. {$define cpu32bitalu}
  139. {$define cpu32bitaddr}
  140. { $define cpuflags}
  141. {$define cputargethasfixedstack}
  142. {$define cpurequiresproperalignment}
  143. {$define cpumm}
  144. {$endif mips}
  145. {$IFDEF MACOS}
  146. {$DEFINE USE_FAKE_SYSUTILS}
  147. {$ENDIF MACOS}
  148. {$if not defined(FPC_HAS_TYPE_EXTENDED) and defined(i386)}
  149. {$error Cross-compiling from systems without support for an 80 bit extended floating point type to i386 is not yet supported at this time }
  150. {$endif}