[cfe-dev] A question on register allocation

Renato Golin via cfe-dev cfe-dev at lists.llvm.org
Tue Oct 6 03:36:42 PDT 2015


On 6 October 2015 at 11:07, Daniel Sanders <Daniel.Sanders at imgtec.com> wrote:
> It doesn't change your point but just for completeness, some targets do have other useful global registers. For example, Mips uses the otherwise unused 'global pointer' as a cheap global variable. IIRC, it's a pointer to the thread context.

Ah, yes, the thread pointer. I think some systems use R9 on ARM for that, too.



More information about the cfe-dev mailing list