Why MIPS assembler has more that one register for return value?

前端 未结 1 750
独厮守ぢ
独厮守ぢ 2021-01-22 09:10

I just started learning MIPS assembler and realized that there are two registers for return values.

First of all I thought that it was implemented because there are lan

相关标签:
1条回答
  • 2021-01-22 09:44

    To be able to return 64-bit values on a 32-bit CPU - e. g. double precision floating points and 64-bit integers. Even mainstream languages with a single return value have datatypes larger than a single register.

    0 讨论(0)
提交回复
热议问题