util
Class Exe

java.lang.Object
  |
  +--util.Exe

public class Exe
extends java.lang.Object

Reads and dumps an executable in our format. For details on the format of an executable, see the Linker class.

Version:
$Id: Exe.java,v 1.8 2003/01/23 06:28:40 zahorjan Exp $
See Also:
Linker

Field Summary
static java.lang.String fileName
           
 
Constructor Summary
Exe()
           
 
Method Summary
static void dumpExe(java.io.DataInputStream is)
           
static void dumpSmok(java.io.DataInputStream is)
          Dumps the executable in SmokMem format.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileName

public static java.lang.String fileName
Constructor Detail

Exe

public Exe()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
java.io.IOException

dumpSmok

public static void dumpSmok(java.io.DataInputStream is)
Dumps the executable in SmokMem format. This method also patches the first instruction (which is assumed to be ORI $GP, $0, 0) to be OR $GP, $0, [TextSize], so that the global pointer will be initialized correctly.


dumpExe

public static void dumpExe(java.io.DataInputStream is)
                    throws java.io.IOException
java.io.IOException