29 ms·
> note that this applies only to x86, on ARM 64-bit mode doesn't provide more GPRs and is even more useless It does. The 32-bit ARM architecture has 15 GPRs (p
by cesarb 4y ago
> note that this applies only to x86, on ARM 64-bit mode doesn't provide more GPRs and is even more useless
It does. The 32-bit ARM architecture has 15 GPRs (plus the instruction pointer which is sort of treated as a GPR by many instructions), while the 64-bit ARM architecture has 31 GPRs (plus one which can either be a constant zero register or the stack pointer depending on the instruction).
> Another option would be to compile apps in 64-bit mode, but use 32-bit wide ints and pointers. This way the RAM could be saved too.
There's a third mode for x86 Linux which does exactly that, but it's never been popular.
- codedokode 4y agoStrange, I thought that all RISC CPUs typically have 32 registers. I guess I was wrong about ARM.