Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Programming (http://www.go4expert.com/forums/programming-forum/)
-   -   c to mips (http://www.go4expert.com/forums/c-to-mips-t22049/)

paradise 9May2010 11:13

c to mips
 
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

addee 17Jun2010 01:23

Re: c to mips
 
I think the ctomips.com may help. They will convert your c source code into mips assembly. What you need to do is just put these code into a c file and upload it on their website, then you will get the assembly. It just works!


All times are GMT +5.5. The time now is 04:31.