首页 > 试题广场 >

下面的函数是图3-lla中函数一个变种,其中有些表达式用空格

[填空题]

下面的函数是图3-lla中函数一个变种,其中有些表达式用空格替代:

long arith2(long x, long y, long z)
{
long tl    = 1 ;
long t2    =2;
long t3    =3 ;
long t4    =4 ;
return t4;
}

实现这些表达式的汇编代码如下:

long arith2(long x, long y, long z)
 x in %rdi, y in Zrsi, z in Xrdx
arith2:
orq   %rsi,%rdi
sarq   $3,%rdi
notq   %rdi
movq  %rdx,%rax
subq   %rdi,%rax
ret
基于这些汇编代码,填写C语言代码中缺失的部分。

这道题你会答吗?花几分钟告诉大家答案吧!