.set push .set pop什么作用?

The directives `.set push' and `.set pop' may be used to save and
restore the current settings for all the options which are controlled
by `.set'.  The `.set push' directive saves the current settings on a
stack.  The `.set pop' directive pops the stack and restores the
settings.

   These directives can be useful inside an macro which must change an
option such as the ISA level or instruction reordering but does not want
to change the state of the code which invoked the macro.

   Traditional MIPS assemblers do not support these directives.

应该是这个意思:
比如,当前isa不是mips1,但你想暂时用用mips1,用完之后,不管之前什么isa都恢复原样,那就
.set push
.set mips1
....

.set pop


--------------------

其就是想在不破坏现有的.set汇编指示环境的情况下添加自己所需要的.set汇编指示,所有一开始.set push将那些原有的汇编指示保存起来,然后加入自己的.set汇编指示,当例程执行完以后在利用.set pop恢复原来的.set汇编指示!
就类似在fcntl等函数中一样先取出想设置的选项然后把自己想添加的选项同选取出的选择相“或”然后再设置,当操作完成时在把原有的设置选项恢复就行了!
谢谢了!


  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值