cpuinfo.pas 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. uses
  14. globtype;
  15. Type
  16. bestreal = double;
  17. ts32real = single;
  18. ts64real = double;
  19. ts80real = extended;
  20. ts128real = extended;
  21. ts64comp = comp;
  22. pbestreal=^bestreal;
  23. { possible supported processors for this target }
  24. tprocessors =
  25. (no_processor,
  26. ppc601,
  27. ppc604
  28. );
  29. tfputype =
  30. (no_fpuprocessor,
  31. fpu_soft,
  32. fpu_standard
  33. );
  34. Const
  35. { calling conventions supported by the code generator }
  36. supported_calling_conventions : tproccalloptions = [
  37. pocall_internproc,
  38. pocall_compilerproc,
  39. pocall_inline,
  40. pocall_stdcall,
  41. { the difference to stdcall is only the name mangling }
  42. pocall_cdecl,
  43. { the difference to stdcall is only the name mangling }
  44. pocall_cppdecl
  45. ];
  46. processorsstr : array[tprocessors] of string[10] = ('',
  47. '603',
  48. '604'
  49. );
  50. fputypestr : array[tfputype] of string[6] = ('',
  51. 'SOFT',
  52. 'STANDARD'
  53. );
  54. Implementation
  55. end.
  56. {
  57. $Log$
  58. Revision 1.21 2004-10-31 21:45:03 peter
  59. * generic tlocation
  60. * move tlocation to cgutils
  61. Revision 1.20 2004/06/20 08:55:32 florian
  62. * logs truncated
  63. Revision 1.19 2004/06/16 20:07:10 florian
  64. * dwarf branch merged
  65. Revision 1.17.2.1 2004/05/01 16:02:10 peter
  66. * POINTER_SIZE replaced with sizeof(aint)
  67. * aint,aword,tconst*int moved to globtype
  68. Revision 1.17 2004/02/27 10:21:05 florian
  69. * top_symbol killed
  70. + refaddr to treference added
  71. + refsymbol to treference added
  72. * top_local stuff moved to an extra record to save memory
  73. + aint introduced
  74. * tppufile.get/putint64/aint implemented
  75. }