Vasconcelos
asked on
C to mips conversion
Im just Starting mips and i made the c program but now i need some help on converting it to mips i need some highlights on what i need to do.
Thanks in advance :)
Thanks in advance :)
int V1[]={3,2,5,-7,9};
int V2[]={-1,3,4,-5,15};
int V3[5];
int TAMANHO = 5;
main()
{
int i;
for (i=0; i<TAMANHO; i=i+1){
V3[i]=V1[i]+V2[i];
}
printf(V3[]= );
for (i=0; i<TAMANHO; i=i+1){
printf( %d, V3[i]);
}
}
If you have a MIPS C cross-compiler, you can let it generate the MIPS code for you.
ASKER
I is that possible? where can i get that?
A Google search with "MIPS cross compiler" will turn up many sources ;)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks