c to mips code in computer organisation and architecture

Posted by lee on Stack Overflow See other posts from Stack Overflow or by lee
Published on 2010-05-09T05:45:41Z Indexed on 2010/05/09 5:48 UTC
Read the original article Hit count: 173

Filed under:
int i ;
void set_array(int num){
int array[10];
for(i=0;i<10;i++){
array[i]=compare(num,i){
}
}
int compare(int a ,int b){
if(sub(a,b)>=0)
return 1;
else
return 0;
}
int sub(int a,int b){
return a-b;
}

anybody know how to convert to mips code

© Stack Overflow or respective owner

Related posts about c