#include "copyright.h"#include "machine.h"#include "system.h"Go to the source code of this file.
Functions | |
| void | CheckEndian () |
Variables | |
| char * | exceptionNames [] |
|
|
Definition at line 28 of file machine.cc. References ASSERT. Referenced by Machine::Machine.
00029 {
00030 union checkit {
00031 char charword[4];
00032 unsigned int intword;
00033 } check;
00034
00035 check.charword[0] = 1;
00036 check.charword[1] = 2;
00037 check.charword[2] = 3;
00038 check.charword[3] = 4;
00039
00040 #ifdef HOST_IS_BIG_ENDIAN
00041 ASSERT (check.intword == 0x01020304);
00042 #else
00043 ASSERT (check.intword == 0x04030201);
00044 #endif
00045 }
|
|
|
Initial value: { "no exception", "syscall",
"page fault/no TLB entry", "page read only",
"bus error", "address error", "overflow",
"illegal instruction" }Definition at line 16 of file machine.cc. Referenced by Machine::RaiseException. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002