cpuinfo.pas 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. Copyright (c) 2010 by the Free Pascal development team
  3. Basic Processor information for the Java VM
  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 = extended;
  19. ts128real = extended;
  20. ts64comp = comp;
  21. pbestreal=^bestreal;
  22. { possible supported processors for this target }
  23. tcputype =
  24. (cpu_none
  25. );
  26. tfputype =
  27. (fpu_none,
  28. fpu_standard
  29. );
  30. Const
  31. { calling conventions supported by the code generator }
  32. supported_calling_conventions : tproccalloptions = [
  33. pocall_internproc
  34. ];
  35. cputypestr : array[tcputype] of string[1] = (''
  36. );
  37. fputypestr : array[tfputype] of string[8] = (
  38. 'NONE',
  39. 'STANDARD'
  40. );
  41. { Supported optimizations, only used for information }
  42. supported_optimizerswitches = genericlevel1optimizerswitches+
  43. genericlevel2optimizerswitches+
  44. genericlevel3optimizerswitches-
  45. { no need to write info about those }
  46. [cs_opt_level1,cs_opt_level2,cs_opt_level3]+
  47. [cs_opt_loopunroll,cs_opt_nodecse];
  48. level1optimizerswitches = genericlevel1optimizerswitches;
  49. level2optimizerswitches = genericlevel2optimizerswitches + level1optimizerswitches + [cs_opt_nodecse];
  50. level3optimizerswitches = genericlevel3optimizerswitches + level2optimizerswitches + [{,cs_opt_loopunroll}];
  51. Implementation
  52. end.