|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nachos.machine.Coff
public class Coff
A COFF (common object file format) loader.
Field Summary | |
---|---|
protected int |
entryPoint
The virtual address of the first instruction of the program. |
protected CoffSection[] |
sections
The sections in this COFF executable. |
Constructor Summary | |
---|---|
protected |
Coff()
Allocate a new Coff object. |
|
Coff(OpenFile file)
Load the COFF executable in the specified file. |
Method Summary | |
---|---|
void |
close()
Close the executable file and release any resources allocated by this loader. |
int |
getEntryPoint()
Return the program entry point. |
int |
getNumSections()
Return the number of sections in the executable. |
CoffSection |
getSection(int sectionNumber)
Return an object that can be used to access the specified section. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int entryPoint
protected CoffSection[] sections
Constructor Detail |
---|
protected Coff()
public Coff(OpenFile file) throws EOFException
Notes:
file
- the file containing the executable.
EOFException
- if the executable is corrupt.Method Detail |
---|
public int getNumSections()
public CoffSection getSection(int sectionNumber)
sectionNumber
- the section to select.
public int getEntryPoint()
public void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |