cpuinfo.pas 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 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. bestreal = real;
  26. ts32real = single;
  27. ts64real = double;
  28. ts80real = extended;
  29. ts64comp = extended;
  30. pbestreal=^bestreal;
  31. { possible supported processors for this target }
  32. tprocessors =
  33. (no_processor,
  34. MC68000,
  35. MC68020,
  36. Coldfire
  37. );
  38. Const
  39. {# Size of native extended floating point type }
  40. extended_size = 8;
  41. {# Size of a pointer }
  42. pointer_size = 4;
  43. {# Size of a multimedia register }
  44. mmreg_size = 16;
  45. { target cpu string (used by compiler options) }
  46. target_cpu_string = 'm68k';
  47. Implementation
  48. end.
  49. {
  50. $Log$
  51. Revision 1.2 2002-08-12 15:08:44 carl
  52. + stab register indexes for powerpc (moved from gdb to cpubase)
  53. + tprocessor enumeration moved to cpuinfo
  54. + linker in target_info is now a class
  55. * many many updates for m68k (will soon start to compile)
  56. - removed some ifdef or correct them for correct cpu
  57. Revision 1.1 2002/08/11 08:06:09 carl
  58. + try to commit this ** file again
  59. Revision 1.7 2002/05/18 13:34:26 peter
  60. * readded missing revisions
  61. Revision 1.6 2002/05/16 19:46:53 carl
  62. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  63. + try to fix temp allocation (still in ifdef)
  64. + generic constructor calls
  65. + start of tassembler / tmodulebase class cleanup
  66. Revision 1.4 2002/05/13 19:52:46 peter
  67. * a ppcppc can be build again
  68. Revision 1.3 2002/04/07 13:43:11 carl
  69. - moved type constant
  70. }