|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcodegenx86.X86CodeGenerator
public class X86CodeGenerator
The X86CodeGenerator class generates AT&T (Gnu assembler) x86 assembly code. This class is incomplete and will need to be implemented by the student.
| Constructor Summary | |
|---|---|
X86CodeGenerator(ClassTreeNode root,
java.lang.String outFile,
boolean gc,
boolean opt,
boolean debug)
X86CodeGenerator constructor |
|
| Method Summary | |
|---|---|
void |
generate()
Generate assembly file In particular, will need to do the following: 1 - start the data section 2 - generate data for the garbage collector 3 - generate string constants 4 - generate class name table 5 - generate object templates 6 - generate dispatch tables 7 - start the text section 8 - generate initialization subroutines 9 - generate user-defined methods See the lab manual for the details of each of these steps. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public X86CodeGenerator(ClassTreeNode root,
java.lang.String outFile,
boolean gc,
boolean opt,
boolean debug)
root - root of the class hierarchy treeoutFile - filename of the assembly output filegc - boolean indicating whether garbage collection is enabledopt - boolean indicating whether optimization is enableddebug - boolean indicating whether debugging is enabled| Method Detail |
|---|
public void generate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||