fpcdefs.inc 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. {$ifdef FPC}
  2. {$ifdef DELPHI}
  3. {$mode delphi}
  4. {$asmmode intel}
  5. {$else}
  6. {$mode objfpc}
  7. {$H-}
  8. {$goto on}
  9. {$inline on}
  10. { 1Mb stack }
  11. {$M 1000000}
  12. { This reduces the memory requirements a lot }
  13. {$PACKENUM 1}
  14. {$ifndef VER1_0}
  15. { We don't use exceptions, so turn off the implicit
  16. exceptions in the constructors }
  17. {$IMPLICITEXCEPTIONS OFF}
  18. { Inline small functions }
  19. {$define USEINLINE}
  20. {$else}
  21. { Optimizer is broken when compiling with optimizations using 1.0.x }
  22. {$ifndef USEOPT}
  23. {$define NOOPT}
  24. {$endif}
  25. {$endif VER1_0}
  26. {$define FPCPROCVAR}
  27. {$ifdef I386}
  28. {$define USEEXCEPT}
  29. {$endif}
  30. {$endif}
  31. {$endif}
  32. {$ifdef DELPHI}
  33. {$H-}
  34. {$J+}
  35. {$Z1}
  36. {$undef FPCPROCVAR}
  37. {$endif}
  38. { assume a processor with flags }
  39. {$define cpuflags}
  40. {$ifdef i386}
  41. {$ifdef delphi}
  42. {$define oldset}
  43. {$endif}
  44. {$define x86}
  45. {$define cpuextended}
  46. {$endif i386}
  47. {$ifdef x86_64}
  48. {$define x86}
  49. {$define cpu64bit}
  50. {$define cpuextended}
  51. {$define cpufloat128}
  52. {$define noopt}
  53. {$endif x86_64}
  54. {$ifdef alpha}
  55. {$define cpu64bit}
  56. {$undef cpuflags}
  57. {$define noopt}
  58. {$define oldset}
  59. {$endif alpha}
  60. {$ifdef sparc}
  61. {$define noopt}
  62. {$define oldset}
  63. {$endif sparc}
  64. {$ifdef powerpc}
  65. {$define noopt}
  66. {$define oldset}
  67. {$endif powerpc}
  68. {$ifdef arm}
  69. {$define cpuneedsdiv32helper}
  70. {$define cputargethasfixedstack}
  71. {$define noopt}
  72. {$define oldset}
  73. {$endif arm}
  74. {$ifdef m68k}
  75. {$define cpufpemu}
  76. {$define noopt}
  77. {$define oldset}
  78. {$endif m68k}
  79. {
  80. $Log$
  81. Revision 1.33 2004-02-17 15:57:49 peter
  82. - fix rtti generation for properties containing sl_vec
  83. - fix crash when overloaded operator is not available
  84. - fix record alignment for C style variant records
  85. Revision 1.32 2004/02/09 22:48:45 florian
  86. * several fixes to parameter handling on arm
  87. Revision 1.31 2004/01/28 16:47:45 peter
  88. Stacksize force to 1mb
  89. Revision 1.30 2003/12/14 22:41:46 peter
  90. * USEOPT to override NOOPT for 1.0.x
  91. Revision 1.29 2003/12/14 20:20:14 peter
  92. * disable optimizer again for 1.0.x
  93. Revision 1.28 2003/12/14 14:18:59 peter
  94. * optimizer works again with 1.0.x
  95. * fixed wrong loop in FindRegWithConst
  96. Revision 1.27 2003/11/22 13:11:10 jonas
  97. - disable the optimizer if compiling with 1.0, because it has a code
  98. generator (not optimizer) bug that causes crashes in the 1.1
  99. optimizer
  100. Revision 1.26 2003/10/31 15:51:11 peter
  101. * USEINLINE directive added (not enabled yet)
  102. Revision 1.25 2003/09/06 16:47:24 florian
  103. + support of NaN and Inf in the compiler as values of real constants
  104. Revision 1.24 2003/09/03 15:55:00 peter
  105. * NEWRA branch merged
  106. Revision 1.23 2003/09/03 11:18:36 florian
  107. * fixed arm concatcopy
  108. + arm support in the common compiler sources added
  109. * moved some generic cg code around
  110. + tfputype added
  111. * ...
  112. Revision 1.22.2.2 2003/08/31 21:07:44 daniel
  113. * callparatemp ripped
  114. Revision 1.22.2.1 2003/08/27 20:11:29 peter
  115. * newra default
  116. Revision 1.22 2003/08/11 21:18:20 peter
  117. * start of sparc support for newra
  118. Revision 1.21 2003/07/21 11:52:57 florian
  119. * very basic stuff for the arm
  120. Revision 1.20 2003/05/24 21:12:57 florian
  121. * if something doesn't work with callparatemp, the define callparatemp
  122. should be used because other processors with reigster calling conventions
  123. depend on this as well
  124. Revision 1.19 2003/05/09 17:47:02 peter
  125. * self moved to hidden parameter
  126. * removed hdisposen,hnewn,selfn
  127. Revision 1.18 2003/04/30 09:42:42 florian
  128. + first changes to make self a hidden parameter
  129. Revision 1.17 2003/04/24 22:29:57 florian
  130. * fixed a lot of PowerPC related stuff
  131. Revision 1.16 2003/04/23 13:47:41 peter
  132. * optimizer is x86
  133. Revision 1.15 2003/04/23 12:35:34 florian
  134. * fixed several issues with powerpc
  135. + applied a patch from Jonas for nested function calls (PowerPC only)
  136. * ...
  137. Revision 1.14 2002/12/06 16:56:57 peter
  138. * only compile cs_fp_emulation support when cpufpuemu is defined
  139. * define cpufpuemu for m68k only
  140. Revision 1.13 2002/10/16 19:01:43 peter
  141. + $IMPLICITEXCEPTIONS switch to turn on/off generation of the
  142. implicit exception frames for procedures with initialized variables
  143. and for constructors. The default is on for compatibility
  144. Revision 1.12 2002/10/05 12:43:24 carl
  145. * fixes for Delphi 6 compilation
  146. (warning : Some features do not work under Delphi)
  147. Revision 1.11 2002/09/30 07:00:45 florian
  148. * fixes to common code to get the alpha compiler compiled applied
  149. Revision 1.10 2002/09/29 23:19:05 florian
  150. + added define 64bit
  151. Revision 1.9 2002/09/07 15:25:02 peter
  152. * old logs removed and tabs fixed
  153. Revision 1.8 2002/08/30 13:42:29 mazen
  154. - undefining win32 when SPARC defined removed, no more needed.
  155. Revision 1.6 2002/08/19 18:17:48 carl
  156. + optimize64_op_const_reg implemented (optimizes 64-bit constant opcodes)
  157. * more fixes to m68k for 64-bit operations
  158. Revision 1.5 2002/08/15 15:11:53 carl
  159. * oldset define is now correct for all cpu's except i386
  160. * correct compilation problems because of the above
  161. Revision 1.4 2002/07/23 12:34:29 daniel
  162. * Readded old set code. To use it define 'oldset'. Activated by default
  163. for ppc.
  164. Revision 1.3 2002/07/04 18:56:50 florian
  165. + log added
  166. }