MIPS汇编伪指令(Directives)

.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

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值