cpuinfo.pas 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 double;
  20. ts128real = type double;
  21. ts64comp = comp;
  22. pbestreal=^bestreal;
  23. { possible supported processors for this target }
  24. tprocessors =
  25. (no_processor,
  26. mips32
  27. );
  28. tfputype =
  29. (no_fpuprocessor,
  30. fpu_fpu
  31. );
  32. Const
  33. {# Size of native extended floating point type }
  34. extended_size = 8;
  35. {# Size of a multimedia register }
  36. mmreg_size = 0;
  37. { target cpu string (used by compiler options) }
  38. target_cpu_string = 'mips';
  39. { calling conventions supported by the code generator }
  40. supported_calling_conventions : tproccalloptions = [
  41. pocall_internproc,
  42. pocall_compilerproc,
  43. pocall_inline,
  44. pocall_stdcall,
  45. { same as stdcall only different name mangling }
  46. pocall_cdecl,
  47. { same as stdcall only different name mangling }
  48. pocall_cppdecl
  49. ];
  50. processorsstr : array[tprocessors] of string[5] = ('',
  51. 'MIPS32'
  52. );
  53. fputypestr : array[tfputype] of string[6] = ('',
  54. 'FPU'
  55. );
  56. Implementation
  57. end.
  58. {
  59. $Log$
  60. Revision 1.1 2005-02-13 18:56:44 florian
  61. + basic mips stuff
  62. }