cpuinfo.pas 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 = Cardinal;
  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 = Cardinal;
  25. Const
  26. {# Size of native extended floating point type }
  27. extended_size = 8;
  28. {# Size of a pointer }
  29. pointer_size = 4;
  30. {# Size of a multimedia register }
  31. mmreg_size = 16;
  32. Implementation
  33. end.
  34. {
  35. $Log$
  36. Revision 1.6 2002-05-16 19:46:53 carl
  37. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  38. + try to fix temp allocation (still in ifdef)
  39. + generic constructor calls
  40. + start of tassembler / tmodulebase class cleanup
  41. Revision 1.4 2002/05/13 19:52:46 peter
  42. * a ppcppc can be build again
  43. Revision 1.3 2002/04/07 13:43:11 carl
  44. - moved type constant
  45. Revision 1.2 2001/12/29 15:28:58 jonas
  46. * powerpc/cgcpu.pas compiles :)
  47. * several powerpc-related fixes
  48. * cpuasm unit is now based on common tainst unit
  49. + nppcmat unit for powerpc (almost complete)
  50. Revision 1.1 2001/08/26 13:31:04 florian
  51. * some cg reorganisation
  52. * some PPC updates
  53. Revision 1.2 2001/08/26 13:29:34 florian
  54. * some cg reorganisation
  55. * some PPC updates
  56. }