cpuinfo.pas 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by the Free Pascal development team
  4. Basic Processor information for the virtual instruction set
  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. Unit CPUInfo;
  12. Interface
  13. Type
  14. { Architecture word - Native unsigned type }
  15. AWord = Longword;
  16. PAWord = ^AWord;
  17. { this must be an ordinal type with the same size as a pointer }
  18. { to allow some dirty type casts for example when using }
  19. { tconstsym.value }
  20. { Note: must be unsigned!! Otherwise, ugly code like }
  21. { pointer(-1) will result in a pointer with the value }
  22. { $fffffffffffffff on a 32bit machine if the compiler uses }
  23. { int64 constants internally (JM) }
  24. TConstPtrUInt = Longword;
  25. bestreal = double;
  26. ts32real = single;
  27. ts64real = double;
  28. ts80real = extended;
  29. ts64comp = comp;
  30. pbestreal=^bestreal;
  31. { possible supported processors for this target }
  32. tprocessors = (no_processor);
  33. Const
  34. {# Size of native extended floating point type }
  35. extended_size = 8;
  36. {# Size of a pointer }
  37. sizeof(aint) = 4;
  38. {# Size of a multimedia register }
  39. mmreg_size = 8;
  40. { target cpu string (used by compiler options) }
  41. target_cpu_string = 'vis';
  42. Implementation
  43. end.
  44. {
  45. $Log$
  46. Revision 1.4 2005-01-20 16:38:45 peter
  47. * load jmp_buf_size from system unit
  48. Revision 1.3 2004/06/20 08:55:32 florian
  49. * logs truncated
  50. Revision 1.2 2004/06/16 20:07:11 florian
  51. * dwarf branch merged
  52. Revision 1.1.2.1 2004/05/01 16:02:10 peter
  53. * POINTER_SIZE replaced with sizeof(aint)
  54. * aint,aword,tconst*int moved to globtype
  55. }