cpuinfo.pas 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. Copyright (c) 1998-2002 by the Free Pascal development team
  3. Basic Processor information for the PowerPC
  4. See the file COPYING.FPC, included in this distribution,
  5. for details about the copyright.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. **********************************************************************}
  10. unit CPUInfo;
  11. interface
  12. uses
  13. globtype;
  14. type
  15. bestreal = double;
  16. ts32real = single;
  17. ts64real = double;
  18. ts80real = extended;
  19. ts128real = extended;
  20. ts64comp = comp;
  21. pbestreal = ^bestreal;
  22. { possible supported processors for this target }
  23. tprocessors =
  24. (no_processor,
  25. ppc970
  26. );
  27. tfputype =
  28. (no_fpuprocessor,
  29. fpu_soft,
  30. fpu_standard
  31. );
  32. const
  33. { calling conventions supported by the code generator }
  34. supported_calling_conventions: tproccalloptions = [
  35. pocall_internproc,
  36. pocall_stdcall,
  37. { the difference to stdcall is only the name mangling }
  38. pocall_cdecl,
  39. { the difference to stdcall is only the name mangling }
  40. pocall_cppdecl
  41. ];
  42. processorsstr: array[tprocessors] of string[10] = ('',
  43. '970'
  44. );
  45. fputypestr: array[tfputype] of string[8] = ('',
  46. 'SOFT',
  47. 'STANDARD'
  48. );
  49. implementation
  50. end.