2
0

cpuinfo.pas 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. TYPE
  21. {# Natural integer register type and size for the target machine }
  22. AWord=Longword;
  23. PAWord=^AWord;
  24. { the ordinal type used when evaluating constant integer expressions }
  25. TConstExprInt=int64;
  26. { this must be an ordinal type with the same size as a pointer }
  27. { Note: must be unsigned!! Otherwise, ugly code like }
  28. TConstPtrUInt=cardinal;
  29. bestreal = double;
  30. ts32real = single;
  31. ts64real = double;
  32. ts80real = extended;
  33. ts64comp = extended;
  34. pbestreal=^bestreal;
  35. { possible supported processors for this target }
  36. tprocessors=(no_processor,SPARC_V8,SPARC_V9);
  37. tfputype =(fpu_soft,fpu_hard);
  38. const
  39. {# Size of native extended floating point type }
  40. {SPARC architecture uses IEEE double floating point numbers}
  41. extended_size = 8;
  42. {# Size of a pointer }
  43. pointer_size = 4;
  44. {# Size of a multimedia register }
  45. mmreg_size = 8;
  46. { target cpu string (used by compiler options) }
  47. target_cpu_string = 'sparc';
  48. { size of the buffer used for setjump/longjmp
  49. the size of this buffer is deduced from the
  50. jmp_buf structure in setjumph.inc file }
  51. {$warning jmp_buf_size not set!}
  52. JMP_BUF_SIZE = 4; // 4 is used temporary to remove AllocTemp warning
  53. implementation
  54. end.
  55. {
  56. $Log$
  57. Revision 1.9 2003-09-03 15:55:01 peter
  58. * NEWRA branch merged
  59. Revision 1.8 2003/06/17 16:35:42 peter
  60. * JMP_BUF_SIZE changed to 4 to remove Alloctemp warnings
  61. Revision 1.7 2003/05/23 22:33:48 florian
  62. * fix some small flaws which prevent sparc linux system unit from compiling
  63. * some reformatting done
  64. Revision 1.6 2002/11/16 20:07:57 florian
  65. * made target_cpu_name lowercase
  66. Revision 1.5 2002/10/16 12:36:54 mazen
  67. * patch of Carl Eric added
  68. }