tac0S
Template Affectional Command Operating System
Main Page
Classes
Files
File List
File Members
code
bin
noff.h
1
/* noff.h
2
* Data structures defining the Nachos Object Code Format
3
*
4
* Basically, we only know about three types of segments:
5
* code (read-only), initialized data, and unitialized data
6
*/
7
8
#define NOFFMAGIC 0xbadfad
/* magic number denoting Nachos
9
* object code file
10
*/
11
12
typedef
struct
segment
{
13
int
virtualAddr;
/* location of segment in virt addr space */
14
int
inFileAddr;
/* location of segment in this file */
15
int
size;
/* size of segment */
16
}
Segment
;
17
18
typedef
struct
noffHeader
{
19
int
noffMagic;
/* should be NOFFMAGIC */
20
Segment
code;
/* executable code segment */
21
Segment
initData;
/* initialized data segment */
22
Segment
uninitData;
/* uninitialized data segment --
23
* should be zero'ed before use
24
*/
25
}
NoffHeader
;
segment
Definition:
noff.h:12
noffHeader
Definition:
noff.h:18
Generated by
1.8.11