c to mips

Discussion in 'Programming' started by paradise, May 9, 2010.

  1. paradise

    paradise New Member

    Joined:
    Apr 5, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    int i ;
    void set_array(int num){
    int array[10];
    for(i=0;i<10;i++){
    array=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
     
  2. addee

    addee New Member

    Joined:
    Jun 16, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice