cpuinfo.pas 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. Basic Processor information for the SPARC
  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 = double;
  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=(no_processor,SPARC_V7,SPARC_V8,SPARC_V9);
  33. tfputype =(no_fpu,fpu_soft,fpu_hard);
  34. const
  35. {# Size of native extended floating point type }
  36. {SPARC architecture uses IEEE double floating point numbers}
  37. extended_size = 8;
  38. {# Size of a multimedia register }
  39. mmreg_size = 8;
  40. { target cpu string (used by compiler options) }
  41. target_cpu_string = 'sparc';
  42. { size of the buffer used for setjump/longjmp
  43. the size of this buffer is deduced from the
  44. jmp_buf structure in setjumph.inc file }
  45. JMP_BUF_SIZE = 12+16;
  46. { calling conventions supported by the code generator }
  47. supported_calling_conventions : tproccalloptions = [
  48. pocall_internproc,
  49. pocall_compilerproc,
  50. pocall_inline,
  51. pocall_stdcall,
  52. pocall_cdecl,
  53. pocall_cppdecl
  54. ];
  55. processorsstr : array[tprocessors] of string[10] = ('',
  56. 'SPARC V7',
  57. 'SPARC V8',
  58. 'SPARC V9'
  59. );
  60. fputypestr : array[tfputype] of string[6] = ('',
  61. 'SOFT',
  62. 'HARD'
  63. );
  64. implementation
  65. end.
  66. {
  67. $Log$
  68. Revision 1.19 2004-09-21 17:25:13 peter
  69. * paraloc branch merged
  70. Revision 1.18.4.1 2004/09/12 12:04:41 peter
  71. * sigset_t is now also in jmp_buf
  72. Revision 1.18 2004/06/20 08:55:32 florian
  73. * logs truncated
  74. Revision 1.17 2004/06/16 20:07:10 florian
  75. * dwarf branch merged
  76. Revision 1.16 2004/04/28 15:19:03 florian
  77. + syscall directive support for MorphOS added
  78. Revision 1.15.2.2 2004/05/30 21:42:13 peter
  79. * fix JMP_BUF_SIZE
  80. Revision 1.15.2.1 2004/05/01 16:02:10 peter
  81. * POINTER_SIZE replaced with sizeof(aint)
  82. * aint,aword,tconst*int moved to globtype
  83. Revision 1.15 2004/03/12 08:18:11 mazen
  84. - revert '../' from include path
  85. }