Skip to main content

Questions tagged [registers]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
2 answers
39 views

Which number should be considered as true/false?

What I want to ask is not the Boolean value at the type level, but the Boolean value in actual implementation. Because the ...
Aster's user avatar
  • 3,207
3 votes
2 answers
169 views

What operations are common in register-based virtual machines?

A register-based virtual machine necessarily contains at least some operations to manipulate registers. Like PUSH <register> <value>. What are some of ...
чистов_n's user avatar
16 votes
3 answers
2k views

What are the pros and cons of register-based VMs and stack-based VMs?

What are the pros and cons of choosing a register or stack based VM for a language implementation? For example Python has stack-based virtual machine, while Lua has register-based VM. What makes a ...
kouta-kun's user avatar
  • 1,359
2 votes
1 answer
178 views

What are differences between stack- and register-based virtual machine's bytecode commands?

What are differences between stack- and register-based virtual machine's bytecode commands? For example Python has stack-based virtual machine. But Lua has register-based vm. So, what are the ...
чистов_n's user avatar
5 votes
2 answers
880 views

Why was C implemented with a register preservation convention that seems to be far less efficient than its predecessor's?

In original implementations of the B language, the caller was responsible for saving and restoring any registers it cares about before calling a function. But in the C language, the called function is ...
Ray Butterworth's user avatar