cpuinfo.pas 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. $Id$
  3. Copyright (c) 1998-2000 by the Free Pascal development team
  4. Basic Processor information for the PowerPC
  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 = Dword;
  16. Type
  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 = DWord;
  25. Const
  26. { Size of native extended type }
  27. extended_size = 8;
  28. Implementation
  29. end.
  30. {
  31. $Log$
  32. Revision 1.3 2002-04-07 13:43:11 carl
  33. - moved type constant
  34. Revision 1.2 2001/12/29 15:28:58 jonas
  35. * powerpc/cgcpu.pas compiles :)
  36. * several powerpc-related fixes
  37. * cpuasm unit is now based on common tainst unit
  38. + nppcmat unit for powerpc (almost complete)
  39. Revision 1.1 2001/08/26 13:31:04 florian
  40. * some cg reorganisation
  41. * some PPC updates
  42. Revision 1.2 2001/08/26 13:29:34 florian
  43. * some cg reorganisation
  44. * some PPC updates
  45. }