...1.80X86 寄存器有以下规则: (1)数据寄存器(EAX、EBX、ECX、EDX):数据寄存器主要用来保存操作数和运算结果等信息。但其也有一些约定俗成的特别作用。
基于2个网页-相关网页
For example, B5 refers to test eax,eax.
例如,B5 代表 test eax,eax。
Thus % eax serves here as both input and output register.
这样,这里的% eax既可以用作输入寄存器,又可以用作输出寄存器。
And since % eax is specified in the clobbered list, GCC doesn't use it anywhere else to store data.
因为% eax是在修饰列表中指定的,GCC不在任何其它地方使用它来存储数据。
应用推荐