|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object | +--coins.lir2c.LirToC
LirToC: convert LIR into C code. It is called from coins.driver.Driver.
| フィールドの概要 | |
Module |
compileUnit
Module to convert |
java.io.OutputStreamWriter |
out
Output Stream Writer |
java.io.PrintWriter |
stdout
print writer to output C code |
| コンストラクタの概要 | |
LirToC(Module cU,
java.io.OutputStreamWriter fout)
Constructor (with args) |
|
LirToC(Module cU,
java.lang.String dstName)
Constructor (with args) |
|
| メソッドの概要 | |
(パッケージプライベート) java.util.HashMap |
getArgMap(Function func)
getArgMap: this method gets the declaration arguments in the Function. |
java.lang.String |
getEpilogue(Function func)
getEpilogue: this method gets the epilogue of the function. |
static java.lang.String |
getInitializer(Data data)
|
(パッケージプライベート) java.util.HashMap |
getIsFuncOrDataMap(Module cU)
getIsFuncOrDataMap: this method gets the Function-or-Data Map in the Module object. |
(パッケージプライベート) java.util.HashMap |
getIsStaticMap(SymTab gmap)
getIsStaticMap: this method gets the IsStatic Map in the global symbol table. |
java.lang.String |
getPrologue(Function func)
getPrologue: this method gets the prologue of the function. |
void |
invoke()
the main routine of convertion. |
void |
invoke2(Function func)
invoke2: invoke2 method converts the Function object to the C code. |
void |
recurLirNode(LirNode root,
java.io.PrintWriter stdout)
revurLirNode: the experimental method that traverse LirNodes recursively. |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
public java.io.PrintWriter stdout
public java.io.OutputStreamWriter out
public Module compileUnit
| コンストラクタの詳細 |
public LirToC(Module cU,
java.lang.String dstName)
throws java.io.IOException
cU - The module to convert.dstName - The filename for the output(C code).
public LirToC(Module cU,
java.io.OutputStreamWriter fout)
throws java.io.IOException
cU - The module to convert.fout - The OutputStreamWriter for the output(C code).| メソッドの詳細 |
public void invoke()
public void invoke2(Function func)
func - the function to convert.
public void recurLirNode(LirNode root,
java.io.PrintWriter stdout)
root - the root node of the LirNodes.stdout - the print writer to output(C code).public java.lang.String getEpilogue(Function func)
func - The function to get the epilogue.
public java.lang.String getPrologue(Function func)
func - The function to get the prologue.
java.util.HashMap getArgMap(Function func)
func - The function to get argument map.
java.util.HashMap getIsStaticMap(SymTab gmap)
gmap - the global symbol table.
java.util.HashMap getIsFuncOrDataMap(Module cU)
cU - the Module to get HashMap entry.
public static java.lang.String getInitializer(Data data)
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||