fpcdefs.inc 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {$ifdef FPC}
  2. {$ifdef DELPHI}
  3. {$mode delphi}
  4. {$asmmode intel}
  5. {$else}
  6. {$mode objfpc}
  7. {$H-}
  8. {$goto on}
  9. { This reduces the memory requirements a lot }
  10. {$PACKENUM 1}
  11. { We don't use exceptions, so turn off the implicit
  12. exceptions in the constructors }
  13. {$ifndef VER1_0}
  14. {$IMPLICITEXCEPTIONS OFF}
  15. {$endif VER1_0}
  16. {$define FPCPROCVAR}
  17. {$ifdef I386}
  18. {$define USEEXCEPT}
  19. {$endif}
  20. {$endif}
  21. {$endif}
  22. {$ifdef DELPHI}
  23. {$H-}
  24. {$J+}
  25. {$Z1}
  26. {$undef FPCPROCVAR}
  27. {$endif}
  28. { assume a processor with flags }
  29. {$define cpuflags}
  30. {$ifdef i386}
  31. {$ifdef delphi}
  32. {$define oldset}
  33. {$endif}
  34. {$define x86}
  35. {$else}
  36. {$define oldset}
  37. {$endif i386}
  38. {$ifdef x86_64}
  39. {$define x86}
  40. {$define cpu64bit}
  41. {$endif x86_64}
  42. {$ifdef alpha}
  43. {$define cpu64bit}
  44. {$undef cpuflags}
  45. {$endif alpha}
  46. {
  47. $Log$
  48. Revision 1.13 2002-10-16 19:01:43 peter
  49. + $IMPLICITEXCEPTIONS switch to turn on/off generation of the
  50. implicit exception frames for procedures with initialized variables
  51. and for constructors. The default is on for compatibility
  52. Revision 1.12 2002/10/05 12:43:24 carl
  53. * fixes for Delphi 6 compilation
  54. (warning : Some features do not work under Delphi)
  55. Revision 1.11 2002/09/30 07:00:45 florian
  56. * fixes to common code to get the alpha compiler compiled applied
  57. Revision 1.10 2002/09/29 23:19:05 florian
  58. + added define 64bit
  59. Revision 1.9 2002/09/07 15:25:02 peter
  60. * old logs removed and tabs fixed
  61. Revision 1.8 2002/08/30 13:42:29 mazen
  62. - undefining win32 when SPARC defined removed, no more needed.
  63. Revision 1.6 2002/08/19 18:17:48 carl
  64. + optimize64_op_const_reg implemented (optimizes 64-bit constant opcodes)
  65. * more fixes to m68k for 64-bit operations
  66. Revision 1.5 2002/08/15 15:11:53 carl
  67. * oldset define is now correct for all cpu's except i386
  68. * correct compilation problems because of the above
  69. Revision 1.4 2002/07/23 12:34:29 daniel
  70. * Readded old set code. To use it define 'oldset'. Activated by default
  71. for ppc.
  72. Revision 1.3 2002/07/04 18:56:50 florian
  73. + log added
  74. }