cpuinfo.pas 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 = real;
  17. ts32real = single;
  18. ts64real = double;
  19. ts80real = extended;
  20. ts128real = type extended;
  21. ts64comp = extended;
  22. pbestreal=^bestreal;
  23. { possible supported processors for this target }
  24. tprocessors =
  25. (no_processor,
  26. MC68000,
  27. MC68020,
  28. Coldfire
  29. );
  30. tfputype =
  31. (no_fpuprocessor,
  32. fpu_soft,
  33. fpu_libgcc,
  34. fpu_68881
  35. );
  36. Const
  37. { calling conventions supported by the code generator }
  38. supported_calling_conventions : tproccalloptions = [
  39. pocall_internproc,
  40. pocall_compilerproc,
  41. pocall_inline,
  42. pocall_stdcall,
  43. { the difference to stdcall is only the name mangling }
  44. pocall_cdecl,
  45. { the difference to stdcall is only the name mangling }
  46. pocall_cppdecl,
  47. { this used by the PalmOS port only }
  48. pocall_syscall
  49. ];
  50. processorsstr : array[tprocessors] of string[5] = ('',
  51. '68000',
  52. '68020',
  53. 'COLDFIRE'
  54. );
  55. fputypestr : array[tfputype] of string[6] = ('',
  56. 'SOFT',
  57. 'LIBGCC',
  58. '68881'
  59. );
  60. Implementation
  61. end.
  62. {
  63. $Log$
  64. Revision 1.14 2004-11-09 22:32:59 peter
  65. * small m68k updates to bring it up2date
  66. * give better error for external local variable
  67. Revision 1.13 2004/06/20 08:55:31 florian
  68. * logs truncated
  69. Revision 1.12 2004/06/16 20:07:10 florian
  70. * dwarf branch merged
  71. Revision 1.11 2004/05/01 23:29:01 florian
  72. * continued to fix m68k compiler compilation
  73. Revision 1.10 2004/04/28 15:19:03 florian
  74. + syscall directive support for MorphOS added
  75. Revision 1.9 2004/04/18 21:13:59 florian
  76. * more adaptions for m68k
  77. Revision 1.8.2.1 2004/05/01 16:02:10 peter
  78. * POINTER_SIZE replaced with sizeof(aint)
  79. * aint,aword,tconst*int moved to globtype
  80. }