Function Mips函数调用和去极化 我有以下两个C++函数: void arprt(int arr[], int size, int perln){ int i = 0; while (i != size){ cout <
Mips函数调用和去极化Function Mips函数调用和去极化 我有以下两个C++函数: void arprt(int arr[], int size, int perln){ int i = 0; while (i != size){ cout <,function,call,mips,Function,Call,Mips,Mips函数调用和去极化 我有以下两个C++函数: void arprt(int arr[], int size, int perln){ int i = 0; while (i != size){ cout << arr[i] << ' '; i++; if (i % perln == 0) cout << endl; } } int expos(in
我有以下两个C++函数:
void arprt(int arr[], int size, int perln){
int i = 0;
while (i != size){
cout << arr[i] << ' ';
i++;
if (i % perln == 0)
cout << endl;
}
}
int expos(int arr[], int size, int dest[]){
int i = 0, j = 0;
while (i != size){
if (arr[i] > 0){
dest[j] = arr[i];
j++;
}
i++;
}
return j;
}
void arprt(int arr[],int size,int perln){
int i=0;
而(i!=尺寸){
“我想把它们翻译成汇编语言(MIPS)。我该怎么做?”。首先,你要了解C函数的功能,然后学习“程序员的MIPS32体系结构”文档,直到你对MIPS程序集有了很好的理解,然后你就翻译代码。或者只是使用C编译器来完成它。我写了C++函数。我真的不太理解MIP的调用和参数部分。