How many registers in custom VM?

Posted by DeadMG on Stack Overflow See other posts from Stack Overflow or by DeadMG
Published on 2010-06-01T09:55:35Z Indexed on 2010/06/01 12:43 UTC
Read the original article Hit count: 221

Filed under:
|
|

I'm designing a custom VM and am curious about how many registers I should use. Initially, I had 255, but I'm a little concerned about backing 255 pointers (a whole KB) on to the stack or heap every time I call a function, when most of them won't even be used. How many registers should I use?

© Stack Overflow or respective owner

Related posts about c++

Related posts about vm