cpuinfo.pas 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by the Free Pascal development team
  4. Basic Processor information for the ARM
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. Unit CPUInfo;
  12. Interface
  13. uses
  14. globtype;
  15. Type
  16. bestreal = double;
  17. ts32real = single;
  18. ts64real = double;
  19. ts80real = type extended;
  20. ts128real = type extended;
  21. ts64comp = comp;
  22. pbestreal=^bestreal;
  23. { possible supported processors for this target }
  24. tprocessors =
  25. (no_processor,
  26. armv3,
  27. armv4,
  28. armv5
  29. );
  30. tfputype =
  31. (no_fpuprocessor,
  32. fpu_soft,
  33. fpu_libgcc,
  34. fpu_fpa,
  35. fpu_fpa10,
  36. fpu_fpa11,
  37. fpu_vfp
  38. );
  39. Const
  40. {# Size of native extended floating point type }
  41. extended_size = 12;
  42. {# Size of a multimedia register }
  43. mmreg_size = 16;
  44. { target cpu string (used by compiler options) }
  45. target_cpu_string = 'arm';
  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. { same as stdcall only different name mangling }
  53. pocall_cdecl,
  54. { same as stdcall only different name mangling }
  55. pocall_cppdecl,
  56. { same as stdcall but floating point numbers are handled like equal sized integers }
  57. pocall_softfloat
  58. ];
  59. processorsstr : array[tprocessors] of string[5] = ('',
  60. 'ARMV3',
  61. 'ARMV4',
  62. 'ARMV5'
  63. );
  64. fputypestr : array[tfputype] of string[6] = ('',
  65. 'SOFT',
  66. 'LIBGCC',
  67. 'FPA',
  68. 'FPA10',
  69. 'FPA11',
  70. 'VFP'
  71. );
  72. Implementation
  73. end.
  74. {
  75. $Log$
  76. Revision 1.12 2005-02-14 17:13:09 peter
  77. * truncate log
  78. Revision 1.11 2005/01/20 16:38:45 peter
  79. * load jmp_buf_size from system unit
  80. }