C to MIPS Procedures and the Stack

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 12

  • @emirhandemir3872
    @emirhandemir3872 Месяц назад

    Awesome video brother!

  • @repenttoreflect8933
    @repenttoreflect8933 5 лет назад +3

    This is so great. Dear Professor I never understand it in class until after I watched this video. This is indeed useful and thank you for great explanation. Please next time try to use arrows or mouse pointer to indicate which and where you're explaining, just for better understanding. Once again a big thank you.

  • @anuragpatel9580
    @anuragpatel9580 4 года назад

    In love with this teaching

  • @julians7785
    @julians7785 2 года назад

    thank you for the great content/clear explanation!

  • @SuperNova-gc7tm
    @SuperNova-gc7tm 4 года назад

    thanks for the concise and clear explanation!

  • @dineshdurgam4602
    @dineshdurgam4602 2 года назад

    can someone explain why addi $sp $sp 8 is two times? this is confusing me

    • @andrerodriguez4998
      @andrerodriguez4998 2 года назад

      In case you still need the answer, as far as I understood, beq is a similar instruction compared to jal (the are jump instructions one conditional and the other unconditional). The difference is that when you use jal you are changing the $ra register and in beq not. The addi sp sp 8 in green it is just executed one time and the other one it is executed 3 times. The addi sp sp -8 is executed 4 times.

  • @classmate3146
    @classmate3146 6 лет назад +32

    Sir it is not good way of teaching, we can read it form book ourselves, so there is no need to listen to your reading. plz work on the board step by step. thanks

    • @SuperNova-gc7tm
      @SuperNova-gc7tm 4 года назад +23

      he explained it very clearly and I happened to need a short explanation.
      You might like to read a whole book but for many it's very helpful to get a shortcut to get into this topic.
      Please have more respect for people who have different lives and interests ... not everyone is learning or acquiring information the way you want or need it.

  • @roxaf6696
    @roxaf6696 9 месяцев назад

    i dont know who told u reading a script in tutoring is a good idea, but dont listen to them again

  • @repenttoreflect8933
    @repenttoreflect8933 5 лет назад

    q = foo(r, s);
    int foo (int n, int m) {
    int q;
    q = 2*n - m;
    if (q > m)
    return n;
    else
    return m;
    }
    How can I translate this from c to mips. Help out please