Link to home
Start Free TrialLog in
Avatar of Vasconcelos
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 :)
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]);
}
}

Open in new window

Avatar of Infinity08
Infinity08
Flag of Belgium image

If you have a MIPS C cross-compiler, you can let it generate the MIPS code for you.
Avatar of Vasconcelos
Vasconcelos

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
Avatar of BrianGEFF719
BrianGEFF719
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks