fpcdefs.inc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. {$endif i386}
  45. {$ifdef x86_64}
  46. {$define x86}
  47. {$define cpuflags}
  48. {$define cpu64bit}
  49. {$define cpuextended}
  50. {$define cpufloat128}
  51. {$define cputargethasfixedstack}
  52. {$endif x86_64}
  53. {$ifdef alpha}
  54. {$define cpu64bit}
  55. {$endif alpha}
  56. {$ifdef sparc}
  57. {$define cpuflags}
  58. {$define cputargethasfixedstack}
  59. {$define cpurequiresproperalignment}
  60. {$endif sparc}
  61. {$ifdef powerpc}
  62. {$define cpuflags}
  63. {$define cputargethasfixedstack}
  64. {$define noopt}
  65. {define oldregvars}
  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}
  80. {
  81. $Log$
  82. Revision 1.48 2005-02-08 22:33:51 olle
  83. * fixed compilation on MacOS
  84. Revision 1.47 2004/11/14 16:26:29 florian
  85. * fixed morphos syscall
  86. Revision 1.46 2004/10/31 18:54:24 peter
  87. * $fpctarget expands to <cpu>-<os>
  88. * allow * in middle of the path to support ../*/units/$fpctarget
  89. Revision 1.45 2004/10/30 15:21:37 florian
  90. * fixed generic optimizer
  91. * enabled generic optimizer for sparc
  92. Revision 1.44 2004/10/14 18:29:22 peter
  93. * disable USE_SYSUTILS when compiled with 1.9.4 or 1.0.x
  94. Revision 1.43 2004/10/10 14:57:29 jonas
  95. - disabled oldregvars because it no longer compiles
  96. Revision 1.42 2004/10/04 21:23:15 florian
  97. * rtti alignment fixed
  98. Revision 1.41 2004/09/21 19:59:51 peter
  99. * x86_64 fixes
  100. * cleanup of fpcdefs.icn
  101. Revision 1.40 2004/09/21 17:25:12 peter
  102. * paraloc branch merged
  103. Revision 1.39.4.1 2004/08/31 20:43:06 peter
  104. * paraloc patch
  105. Revision 1.39 2004/08/15 13:30:18 florian
  106. * fixed alignment of variant records
  107. * more alignment problems fixed
  108. Revision 1.38 2004/06/20 08:55:29 florian
  109. * logs truncated
  110. Revision 1.37 2004/06/16 20:07:07 florian
  111. * dwarf branch merged
  112. Revision 1.36 2004/05/30 21:20:40 jonas
  113. * enable regvars by default for PPC
  114. Revision 1.35.2.4 2004/05/02 12:45:32 peter
  115. * enabled cpuhasfixedstack for x86-64 again
  116. * fixed size of temp allocation for parameters
  117. Revision 1.35.2.3 2004/05/02 01:02:24 peter
  118. * remove fixed stack for x86-64
  119. Revision 1.35.2.2 2004/04/29 23:30:28 peter
  120. * fix i386 compiler
  121. }