cpuinfo.pas 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. const
  38. {# Size of native extended floating point type }
  39. {SPARC architecture uses IEEE double floating point numbers}
  40. extended_size = 8;
  41. {# Size of a pointer }
  42. pointer_size = 4;
  43. {# Size of a multimedia register }
  44. mmreg_size = 8;
  45. { target cpu string (used by compiler options) }
  46. target_cpu_string = 'sparc';
  47. { size of the buffer used for setjump/longjmp
  48. the size of this buffer is deduced from the
  49. jmp_buf structure in setjumph.inc file }
  50. {$warning jmp_buf_size not set!}
  51. jmp_buf_size = 0;
  52. IMPLEMENTATION
  53. END.
  54. {
  55. $Log$
  56. Revision 1.7 2003-05-23 22:33:48 florian
  57. * fix some small flaws which prevent sparc linux system unit from compiling
  58. * some reformatting done
  59. Revision 1.6 2002/11/16 20:07:57 florian
  60. * made target_cpu_name lowercase
  61. Revision 1.5 2002/10/16 12:36:54 mazen
  62. * patch of Carl Eric added
  63. }