cpuinfo.pas 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1998-2000 by the Free Pascal development team
  5. Basic Processor information about the Alpha
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {
  13. Basic Processor information about the Alpha
  14. }
  15. Unit CPUInfo;
  16. {$i fpcdefs.inc}
  17. Interface
  18. Type
  19. { Natural integer register type and size for the target machine }
  20. {$ifdef FPC}
  21. AWord = Qword;
  22. {$else FPC}
  23. AWord = Longint;
  24. {$endif FPC}
  25. PAWord = ^AWord;
  26. { This must be an ordinal type with the same size as a pointer
  27. Note: Must be unsigned! Otherwise, ugly code like
  28. pointer(-1) will result in a pointer with the value
  29. $fffffffffffffff on a 32bit machine if the compiler uses
  30. int64 constants internally (JM) }
  31. TConstPtrUInt = qword;
  32. bestreal = extended;
  33. ts32real = single;
  34. ts64real = double;
  35. ts80real = extended;
  36. ts64comp = extended;
  37. pbestreal=^bestreal;
  38. { possible supported processors for this target }
  39. tprocessors =
  40. (no_processor,
  41. ClassEV7,
  42. ClassEV8
  43. );
  44. Const
  45. { Size of native extended type }
  46. extended_size = 16;
  47. {# Size of a pointer }
  48. sizeof(aint) = 8;
  49. {# Size of a multimedia register }
  50. mmreg_size = 8;
  51. { target cpu string (used by compiler options) }
  52. target_cpu_string = 'alpha';
  53. Implementation
  54. end.