Main Page   Compound List   File List   Compound Members  

arch.hpp

00001 /* 
00002  * maybe used for porting ...
00003  * (ignore this file.)
00004  */
00005 #ifdef __ALWAYS_UNDEFINED
00006 template <class Ad_t, bool BE, unsigned short A>
00007 class Architecture
00008 {
00009 private:
00010   le_replace (unsigned char *, AddressType);
00011   be_replace (unsigned char *, AddressType);
00012 
00013 public:
00014   typedef Ad_t  AddressType;    /* type capable for holding a memory address as integer */
00015   bool BigEndian;               /* true if machine uses big endian */
00016   unsigned short Align;         /* data alignment - needed? (sanity checks) */
00017 
00018   Architecture ()
00019   {
00020     BigEndian = BE;
00021     Align = A;
00022   }
00023 
00024   replaceAddress  (unsigned char *, AddressType);
00025 };
00026 
00027 
00028 Architecture<unsigned int, false, 4>    x86;
00029 // ...
00030 
00031 #define x86     this_arch;
00032 #endif

Generated at Tue Aug 14 18:04:51 2001 for Kermit by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001