Groups
Groups
Sign in
Groups
Groups
Shanghai Linux User Group
Conversations
Labels
About
Send feedback
Help
MIPS架构里$at寄存器用途的疑惑
65 views
Skip to first unread message
Heiher
unread,
Dec 18, 2010, 6:48:26 AM
12/18/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sh...@googlegroups.com
RT, 看书上说$1寄存器也就是
$at寄存器是供汇编器合成指令使用的,有其它的程序不应该使用的意思?另外当进程切换时就伴随着上下文的切换,寄存器不是也都更新了吗?其它进程使用
$at 寄存器有影响吗?很不解,望指教。
Best regards!
Heiher
Honglei Cong
unread,
Dec 18, 2010, 10:37:54 AM
12/18/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sh...@googlegroups.com
应尽量少用,如果使用就有几个宏指令不能用
切换回来时候会恢复的
和其他进程没关系
你email不错嘛,admin
2010/12/18 Heiher <
ad...@heiher.info
>:
Zhang Cheng
unread,
Dec 19, 2010, 2:21:26 AM
12/19/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sh...@googlegroups.com
MIPS中有很多指令是合成指令,也就是说你看上去是一条指令,但实际上不是处理器的指令,在汇编时,汇编器会把这条指令展开成两条或者若干条,这若干条指令中,如果需要用到第三个寄存器做辅助,汇编器就会用$at。所以,除非你非常了解各条指令,知道汇编器什么时候会使用这个寄存器,否则不要使用这个寄存器。至于进程切换的时候,操作系统会负责保持所有需要保存的上下文的。
Best Regards,
Cheng
2010/12/18 Heiher
<
ad...@heiher.info
>
Reply all
Reply to author
Forward
0 new messages