fpcdefs.inc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. {$MEMORY 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, but not when EXTDEBUG is used }
  19. {$ifndef EXTDEBUG}
  20. {$define USEINLINE}
  21. {$endif EXTDEBUG}
  22. {$else}
  23. { Optimizer is broken when compiling with optimizations using 1.0.x }
  24. {$ifndef USEOPT}
  25. {$define NOOPT}
  26. {$endif}
  27. {$endif VER1_0}
  28. {$define FPCPROCVAR}
  29. {$ifdef I386}
  30. {$define USEEXCEPT}
  31. {$endif}
  32. {$endif}
  33. {$ifdef cpuarm}
  34. {$packrecords c}
  35. {$endif cpuarm}
  36. {$endif}
  37. {$ifdef DELPHI}
  38. {$H-}
  39. {$J+}
  40. {$Z1}
  41. {$undef FPCPROCVAR}
  42. {$endif}
  43. { assume a processor with flags }
  44. {$define cpuflags}
  45. {$ifdef i386}
  46. {$ifdef delphi}
  47. {$define oldset}
  48. {$endif}
  49. {$define x86}
  50. {$define cpuextended}
  51. {$endif i386}
  52. {$ifdef x86_64}
  53. {$define x86}
  54. {$define cpu64bit}
  55. {$define cpuextended}
  56. {$define cpufloat128}
  57. {$define noopt}
  58. {$define cputargethasfixedstack}
  59. {$endif x86_64}
  60. {$ifdef alpha}
  61. {$define cpu64bit}
  62. {$undef cpuflags}
  63. {$define noopt}
  64. {$define oldset}
  65. {$endif alpha}
  66. {$ifdef sparc}
  67. {$define noopt}
  68. {$define oldset}
  69. {$endif sparc}
  70. {$ifdef cpusparc}
  71. {$undef useinline}
  72. {$endif cpusparc}
  73. {$ifdef powerpc}
  74. {$define noopt}
  75. {$define oldset}
  76. {$define oldregvars}
  77. {$endif powerpc}
  78. {$ifdef arm}
  79. {$define cpuneedsdiv32helper}
  80. {$define cputargethasfixedstack}
  81. {$define noopt}
  82. {$define oldset}
  83. {$endif arm}
  84. {$ifdef m68k}
  85. {$define cpufpemu}
  86. {$define noopt}
  87. {$define oldset}
  88. {$endif m68k}
  89. {
  90. $Log$
  91. Revision 1.39 2004-08-15 13:30:18 florian
  92. * fixed alignment of variant records
  93. * more alignment problems fixed
  94. Revision 1.38 2004/06/20 08:55:29 florian
  95. * logs truncated
  96. Revision 1.37 2004/06/16 20:07:07 florian
  97. * dwarf branch merged
  98. Revision 1.36 2004/05/30 21:20:40 jonas
  99. * enable regvars by default for PPC
  100. Revision 1.35.2.4 2004/05/02 12:45:32 peter
  101. * enabled cpuhasfixedstack for x86-64 again
  102. * fixed size of temp allocation for parameters
  103. Revision 1.35.2.3 2004/05/02 01:02:24 peter
  104. * remove fixed stack for x86-64
  105. Revision 1.35.2.2 2004/04/29 23:30:28 peter
  106. * fix i386 compiler
  107. }