Linked by Jordan Spencer Cunningham on Wed 7th Oct 2009 19:15 UTC, submitted by JayDee
Permalink for comment 388365
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.




Member since:
2006-01-25
True, but in real world code more often than not the extra registers simply don't offer enough benefit to compensate for the slowdown caused by doubling the size of pointers... There are times where it helps A LOT of course, and it certainly doesn't hurt, but it isn't always effective. Besides, there is nothing magic about have 16 GPRs that makes it possible to use registers instead of the stack - you can use reg calling conventions with just 8 registers in 32-bit code as well - it just depends on how many parameters you are using, their types, and how many local variables you are defining. If your code has a lot of parameters or a lot of local variables then 16 GPRs will probably help, otherwise it will not have any effect or very little effect.