cpuinfo.pas 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. {# Size of native extended floating point type }
  38. extended_size = 8;
  39. {# Size of a multimedia register }
  40. mmreg_size = 16;
  41. { size of the buffer used for setjump/longjmp
  42. the size of this buffer is deduced from the
  43. jmp_buf structure in setjumph.inc file
  44. }
  45. jmp_buf_size = 28;
  46. { target cpu string (used by compiler options) }
  47. target_cpu_string = 'm68k';
  48. { calling conventions supported by the code generator }
  49. supported_calling_conventions : tproccalloptions = [
  50. pocall_internproc,
  51. pocall_compilerproc,
  52. pocall_inline,
  53. pocall_stdcall,
  54. { the difference to stdcall is only the name mangling }
  55. pocall_cdecl,
  56. { the difference to stdcall is only the name mangling }
  57. pocall_cppdecl,
  58. { this used by the PalmOS port only }
  59. pocall_syscall
  60. ];
  61. processorsstr : array[tprocessors] of string[5] = ('',
  62. '68000',
  63. '68020',
  64. 'COLDFIRE'
  65. );
  66. fputypestr : array[tfputype] of string[6] = ('',
  67. 'SOFT',
  68. 'LIBGCC',
  69. '68881'
  70. );
  71. Implementation
  72. end.
  73. {
  74. $Log$
  75. Revision 1.13 2004-06-20 08:55:31 florian
  76. * logs truncated
  77. Revision 1.12 2004/06/16 20:07:10 florian
  78. * dwarf branch merged
  79. Revision 1.11 2004/05/01 23:29:01 florian
  80. * continued to fix m68k compiler compilation
  81. Revision 1.10 2004/04/28 15:19:03 florian
  82. + syscall directive support for MorphOS added
  83. Revision 1.9 2004/04/18 21:13:59 florian
  84. * more adaptions for m68k
  85. Revision 1.8.2.1 2004/05/01 16:02:10 peter
  86. * POINTER_SIZE replaced with sizeof(aint)
  87. * aint,aword,tconst*int moved to globtype
  88. }