cpuinfo.pas 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. uses
  18. globtype;
  19. Type
  20. { Natural integer register type and size for the target machine }
  21. {$ifdef FPC}
  22. AWord = Qword;
  23. {$else FPC}
  24. AWord = Longint;
  25. {$endif FPC}
  26. PAWord = ^AWord;
  27. { This must be an ordinal type with the same size as a pointer
  28. Note: Must be unsigned! Otherwise, ugly code like
  29. pointer(-1) will result in a pointer with the value
  30. $fffffffffffffff on a 32bit machine if the compiler uses
  31. int64 constants internally (JM) }
  32. TConstPtrUInt = qword;
  33. bestreal = extended;
  34. {$if FPC_FULLVERSION>20700}
  35. bestrealrec = TExtended80Rec;
  36. {$endif FPC_FULLVERSION>20700}
  37. ts32real = single;
  38. ts64real = double;
  39. ts80real = extended;
  40. ts64comp = extended;
  41. pbestreal=^bestreal;
  42. { possible supported processors for this target }
  43. tcputype =
  44. (cpu_none,
  45. ClassEV7,
  46. ClassEV8
  47. );
  48. tcontrollertype =
  49. (ct_none
  50. );
  51. Const
  52. { Is there support for dealing with multiple microcontrollers available }
  53. { for this platform? }
  54. ControllerSupport = false;
  55. { Size of native extended type }
  56. extended_size = 16;
  57. {# Size of a pointer }
  58. aint_size = 8;
  59. {# Size of a multimedia register }
  60. mmreg_size = 8;
  61. { We know that there are fields after sramsize
  62. but we don't care about this warning }
  63. {$PUSH}
  64. {$WARN 3177 OFF}
  65. embedded_controllers : array [tcontrollertype] of tcontrollerdatatype =
  66. (
  67. (controllertypestr:''; controllerunitstr:''; flashbase:0; flashsize:0; srambase:0; sramsize:0));
  68. {$POP}
  69. { target cpu string (used by compiler options) }
  70. target_cpu_string = 'alpha';
  71. Implementation
  72. end.