Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Compiler construction 为三地址语句生成代码_Compiler Construction_Assembly - Fatal编程技术网

Compiler construction 为三地址语句生成代码

Compiler construction 为三地址语句生成代码,compiler-construction,assembly,Compiler Construction,Assembly,我想为三地址语句生成代码,假设寄存器SP指向堆栈顶部的堆栈分配。例如,x=y+1 100: LD SP, # 144 108: ACTION1 128: ADD SP,SP,#1 136: BR *0(SP) 144: 我说的对吗?看起来像是Z80的远亲

我想为三地址语句生成代码,假设寄存器SP指向堆栈顶部的堆栈分配。例如,x=y+1

100:  LD SP, # 144
108:  ACTION1
128:  ADD SP,SP,#1
136:  BR *0(SP)
144:

我说的对吗?

看起来像是Z80的远亲