cpuinfo.pas 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {******************************************************************************
  2. $Id$
  3. Copyright (c) 1998-2000 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. unit cpuinfo;
  18. {$INCLUDE fpcdefs.inc}
  19. interface
  20. uses
  21. globtype;
  22. type
  23. bestreal = double;
  24. ts32real = single;
  25. ts64real = double;
  26. ts80real = extended;
  27. ts128real = type extended;
  28. ts64comp = type extended;
  29. pbestreal=^bestreal;
  30. { possible supported processors for this target }
  31. tprocessors=(no_processor,SPARC_V7,SPARC_V8,SPARC_V9);
  32. tfputype =(no_fpu,fpu_soft,fpu_hard);
  33. const
  34. {# Size of native extended floating point type }
  35. {SPARC architecture uses IEEE double floating point numbers}
  36. extended_size = 8;
  37. {# Size of a multimedia register }
  38. mmreg_size = 8;
  39. { target cpu string (used by compiler options) }
  40. target_cpu_string = 'sparc';
  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. JMP_BUF_SIZE = 12;
  45. { calling conventions supported by the code generator }
  46. supported_calling_conventions : tproccalloptions = [
  47. pocall_internproc,
  48. pocall_compilerproc,
  49. pocall_inline,
  50. pocall_stdcall,
  51. pocall_cdecl,
  52. pocall_cppdecl
  53. ];
  54. processorsstr : array[tprocessors] of string[10] = ('',
  55. 'SPARC V7',
  56. 'SPARC V8',
  57. 'SPARC V9'
  58. );
  59. fputypestr : array[tfputype] of string[6] = ('',
  60. 'SOFT',
  61. 'HARD'
  62. );
  63. implementation
  64. end.
  65. {
  66. $Log$
  67. Revision 1.18 2004-06-20 08:55:32 florian
  68. * logs truncated
  69. Revision 1.17 2004/06/16 20:07:10 florian
  70. * dwarf branch merged
  71. Revision 1.16 2004/04/28 15:19:03 florian
  72. + syscall directive support for MorphOS added
  73. Revision 1.15.2.2 2004/05/30 21:42:13 peter
  74. * fix JMP_BUF_SIZE
  75. Revision 1.15.2.1 2004/05/01 16:02:10 peter
  76. * POINTER_SIZE replaced with sizeof(aint)
  77. * aint,aword,tconst*int moved to globtype
  78. Revision 1.15 2004/03/12 08:18:11 mazen
  79. - revert '../' from include path
  80. }