Is this MIPS strlen correctly converted from the corresponding C loop?

前端 未结 3 2068
长情又很酷
长情又很酷 2021-01-24 21:26

I have a simple question for a Comp Sci class I\'m taking where my task is to convert a function into MIPS assembly language. I believe I have a correct answer but I want to ver

3条回答
  •  长发绾君心
    2021-01-24 22:12

    Yeah, you have a correct asm version, and I like the fact that you do as much work as possible before testing the value of t0 to give as much time as possible for loading from memory.

提交回复
热议问题