d********e 发帖数: 6814 | 1 有个要翻译c code的题目,不知道怎么写。。。
100刀paypal boa现金或者1000个包子
Translate the following C code into assembly, using the execution block and
then compile your code into binary. Explain the 2 phases CLEARLY!
int main()
{
int n;
short s = 3;
n = f(c);
return n;
}
int f(short s)
{
return 2*s;
}
上面那个有点会写,下面要嵌入call不太会,谢谢 | s*****e 发帖数: 854 | 2 gcc -S
will generate the assembly
and
【在 d********e 的大作中提到】 : 有个要翻译c code的题目,不知道怎么写。。。 : 100刀paypal boa现金或者1000个包子 : Translate the following C code into assembly, using the execution block and : then compile your code into binary. Explain the 2 phases CLEARLY! : int main() : { : int n; : short s = 3; : n = f(c); : return n;
| m******s 发帖数: 152 | |
|