cpuinfo.pas 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. Type
  14. { Architecture word - Native unsigned type }
  15. AWord = Longword;
  16. PAWord = ^AWord;
  17. { this must be an ordinal type with the same size as a pointer }
  18. { to allow some dirty type casts for example when using }
  19. { tconstsym.value }
  20. { Note: must be unsigned!! Otherwise, ugly code like }
  21. { pointer(-1) will result in a pointer with the value }
  22. { $fffffffffffffff on a 32bit machine if the compiler uses }
  23. { int64 constants internally (JM) }
  24. TConstPtrUInt = Longword;
  25. bestreal = double;
  26. ts32real = single;
  27. ts64real = double;
  28. ts80real = extended;
  29. ts64comp = comp;
  30. pbestreal=^bestreal;
  31. { possible supported processors for this target }
  32. tprocessors =
  33. (no_processor,
  34. armv4
  35. );
  36. Const
  37. {# Size of native extended floating point type }
  38. extended_size = 8;
  39. {# Size of a pointer }
  40. pointer_size = 4;
  41. {# Size of a multimedia register }
  42. mmreg_size = 16;
  43. { target cpu string (used by compiler options) }
  44. target_cpu_string = 'arm';
  45. { size of the buffer used for setjump/longjmp
  46. the size of this buffer is deduced from the
  47. jmp_buf structure in setjumph.inc file
  48. }
  49. { for linux: }
  50. jmp_buf_size = 220; { according to sizeof(jmp_buf) on my Zaurus (FK) }
  51. Implementation
  52. end.
  53. {
  54. $Log$
  55. Revision 1.1 2003-07-21 16:35:30 florian
  56. * very basic stuff for the arm
  57. }