cpuinfo.pas 1.7 KB

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