cpuinfo.pas 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. {
  2. $Id$
  3. Copyright (c) 1998-2004 by Florian Klaempfl
  4. Basic Processor information
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. Unit cpuinfo;
  19. {$i fpcdefs.inc}
  20. Interface
  21. uses
  22. globtype;
  23. Type
  24. bestreal = extended;
  25. ts32real = single;
  26. ts64real = double;
  27. ts80real = extended;
  28. ts128real = type extended;
  29. ts64comp = type extended;
  30. pbestreal=^bestreal;
  31. { possible supported processors for this target }
  32. tprocessors =
  33. (no_processor,
  34. Class386,
  35. ClassPentium,
  36. ClassPentium2,
  37. ClassPentium3,
  38. ClassPentium4
  39. );
  40. tfputype =
  41. (no_fpuprocessor,
  42. fpu_soft,
  43. fpu_x87,
  44. fpu_sse,
  45. fpu_sse2
  46. );
  47. Const
  48. { calling conventions supported by the code generator }
  49. supported_calling_conventions : tproccalloptions = [
  50. pocall_internproc,
  51. pocall_compilerproc,
  52. pocall_inline,
  53. pocall_register,
  54. pocall_safecall,
  55. pocall_stdcall,
  56. pocall_cdecl,
  57. pocall_cppdecl,
  58. pocall_far16,
  59. pocall_pascal,
  60. pocall_oldfpccall
  61. ];
  62. processorsstr : array[tprocessors] of string[10] = ('',
  63. '386',
  64. 'PENTIUM',
  65. 'PENTIUM2',
  66. 'PENTIUM3',
  67. 'PENTIUM4'
  68. );
  69. fputypestr : array[tfputype] of string[6] = ('',
  70. 'SOFT',
  71. 'X87',
  72. 'SSE',
  73. 'SSE2'
  74. );
  75. sse_singlescalar : set of tfputype = [fpu_sse,fpu_sse2];
  76. sse_doublescalar : set of tfputype = [fpu_sse2];
  77. Implementation
  78. end.
  79. {
  80. $Log$
  81. Revision 1.27 2004-10-31 21:45:03 peter
  82. * generic tlocation
  83. * move tlocation to cgutils
  84. Revision 1.26 2004/06/20 08:55:31 florian
  85. * logs truncated
  86. Revision 1.25 2004/06/16 20:07:10 florian
  87. * dwarf branch merged
  88. Revision 1.24 2004/04/28 15:19:03 florian
  89. + syscall directive support for MorphOS added
  90. Revision 1.23.2.2 2004/05/01 16:02:10 peter
  91. * POINTER_SIZE replaced with sizeof(aint)
  92. * aint,aword,tconst*int moved to globtype
  93. Revision 1.23.2.1 2004/04/26 21:00:37 peter
  94. * AInt fixed, PAInt added
  95. Revision 1.23 2004/02/27 10:21:05 florian
  96. * top_symbol killed
  97. + refaddr to treference added
  98. + refsymbol to treference added
  99. * top_local stuff moved to an extra record to save memory
  100. + aint introduced
  101. * tppufile.get/putint64/aint implemented
  102. }