.globl
Declare the listed label(s) as global to enable referencing from other files
.globl symbol
意为symbol全局可见
.type
.type name,@type:将符号name的type属性设为type。其中type可以是function或object
.type似乎不是MIPS的伪指令而是arm的
更多详见
.ent .end
These directives mark the start and end of a function.
.ent
, .end
分别用来标志函数的开头和结尾。举例如下:
.text
.ent func_1
func_1:
addu $v0, $a0, $a1
j $ra
.end func_1
其中标签名可以在.end指令中省略,该指令会默认为最后一个.ent中使用的名称。
.frame
例如.frame sp, framesize, rpc