cpuinfo.pas 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. cpu_mips32
  26. );
  27. tfputype =(fpu_none,fpu_soft,fpu_mips2,fpu_mips3);
  28. Const
  29. {# Size of native extended floating point type }
  30. extended_size = 8;
  31. {# Size of a multimedia register }
  32. mmreg_size = 0;
  33. { target cpu string (used by compiler options) }
  34. {$ifdef MIPSEL}
  35. target_cpu_string = 'mipsel';
  36. {$else MIPSEL}
  37. target_cpu_string = 'mips';
  38. {$endif MIPSEL}
  39. { calling conventions supported by the code generator }
  40. supported_calling_conventions : tproccalloptions = [
  41. pocall_internproc,
  42. pocall_stdcall,
  43. { same as stdcall only different name mangling }
  44. pocall_cdecl,
  45. { same as stdcall only different name mangling }
  46. pocall_cppdecl
  47. ];
  48. cputypestr : array[tcputype] of string[5] = ('',
  49. 'MIPS32'
  50. );
  51. fputypestr : array[tfputype] of string[6] = ('',
  52. 'SOFT',
  53. 'FPU_MIPS2','FPU_MIPS3'
  54. );
  55. { Supported optimizations, only used for information }
  56. supported_optimizerswitches = [cs_opt_regvar,cs_opt_loopunroll,cs_opt_nodecse];
  57. level1optimizerswitches = [];
  58. level2optimizerswitches = level1optimizerswitches + [cs_opt_regvar,cs_opt_stackframe,cs_opt_nodecse];
  59. level3optimizerswitches = level2optimizerswitches + [cs_opt_loopunroll];
  60. Implementation
  61. end.