cpuinfo.pas 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. pointer_size = 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. { size of the buffer used for setjump/longjmp
  54. the size of this buffer is deduced from the
  55. jmp_buf structure in setjumph.inc file
  56. }
  57. jmp_buf_size = 24;
  58. Implementation
  59. end.