簡單的例子:
根據(jù)指令跳到某個translate function里

根據(jù)MIPS 的protocol return binary

Hard Part: ? ?Symbol Table

In?computer science, a?symbol table?is adata structureused by a languagetranslatorsuch as a?compiler?or?interpreter, where each?identifier(a.k.a.symbol) in a program's?source code?is associated with information relating to its declaration or appearance in the source


傳入MIPS代碼, PASS_1過濾comment, check一些Syntax有沒有error, 比如arguments數(shù)量。 添加label進入Symbol Table. 然后Output a intermediate file


Intermediate file = 過濾了comments, labels過后的MIPS 代碼,Pass2 是要把它變成Binary


