cpuinfo.pas 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. { calling conventions supported by the code generator }
  54. supported_calling_conventions = [
  55. pocall_internproc,
  56. pocall_compilerproc,
  57. pocall_inline,
  58. pocall_stdcall,
  59. pocall_cdecl,
  60. pocall_cppdecl
  61. ];
  62. implementation
  63. end.
  64. {
  65. $Log$
  66. Revision 1.10 2003-11-07 15:58:33 florian
  67. * Florian's culmutative nr. 1; contains:
  68. - invalid calling conventions for a certain cpu are rejected
  69. - arm softfloat calling conventions
  70. - -Sp for cpu dependend code generation
  71. - several arm fixes
  72. - remaining code for value open array paras on heap
  73. Revision 1.9 2003/09/03 15:55:01 peter
  74. * NEWRA branch merged
  75. Revision 1.8 2003/06/17 16:35:42 peter
  76. * JMP_BUF_SIZE changed to 4 to remove Alloctemp warnings
  77. Revision 1.7 2003/05/23 22:33:48 florian
  78. * fix some small flaws which prevent sparc linux system unit from compiling
  79. * some reformatting done
  80. Revision 1.6 2002/11/16 20:07:57 florian
  81. * made target_cpu_name lowercase
  82. Revision 1.5 2002/10/16 12:36:54 mazen
  83. * patch of Carl Eric added
  84. }