cpuinfo.pas 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. Copyright (c) 1998-2002 by the Free Pascal development team
  3. Basic Processor information for the ARM
  4. See the file COPYING.FPC, included in this distribution,
  5. for details about the copyright.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. **********************************************************************}
  10. Unit CPUInfo;
  11. Interface
  12. uses
  13. globtype;
  14. Type
  15. bestreal = double;
  16. ts32real = single;
  17. ts64real = double;
  18. ts80real = type double;
  19. ts128real = type double;
  20. ts64comp = comp;
  21. pbestreal=^bestreal;
  22. { possible supported processors for this target }
  23. tcputype =
  24. (cpu_none,
  25. mips32
  26. );
  27. tfputype =
  28. (fpu_none,
  29. fpu_fpu
  30. );
  31. Const
  32. {# Size of native extended floating point type }
  33. extended_size = 8;
  34. {# Size of a multimedia register }
  35. mmreg_size = 0;
  36. { target cpu string (used by compiler options) }
  37. target_cpu_string = 'mips';
  38. { calling conventions supported by the code generator }
  39. supported_calling_conventions : tproccalloptions = [
  40. pocall_internproc,
  41. pocall_stdcall,
  42. { same as stdcall only different name mangling }
  43. pocall_cdecl,
  44. { same as stdcall only different name mangling }
  45. pocall_cppdecl
  46. ];
  47. cputypestr : array[tcputype] of string[5] = ('',
  48. 'MIPS32'
  49. );
  50. fputypestr : array[tfputype] of string[6] = ('',
  51. 'FPU'
  52. );
  53. { Supported optimizations, only used for information }
  54. supported_optimizerswitches = [cs_opt_regvar,cs_opt_loopunroll];
  55. level1optimizerswitches = [];
  56. level2optimizerswitches = level1optimizerswitches + [cs_opt_regvar,cs_opt_stackframe];
  57. level3optimizerswitches = level2optimizerswitches + [cs_opt_loopunroll];
  58. Implementation
  59. end.