[cfe-dev] A question on register allocation

Joachim Durchholz via cfe-dev cfe-dev at lists.llvm.org
Mon Oct 5 11:56:13 PDT 2015


Am 05.10.2015 um 17:39 schrieb James Y Knight via cfe-dev:
> I really think it'd be very nearly trivial to implement something which is
> at the same level of usefulness as GCC's version of this. It's just that
> that level of usefulness is pretty low.

Just for the record, I'm seeing another use case beyond operating 
systems: Virtual machines, runtimes for languages that do not put much 
value on an easy C interface.

That's still a pretty short list of use cases.
It could be pretty big for each use case. I guess operating system 
coders tend to have a specialist for each architecture anyway, and can 
do better than a compiler could; I'm not so sure for VM and runtime coders.

OT3H it may be that to make good use of a register, you need to know so 
much about the architecture that you always can do better than the 
compiler anyway. Is that a reasonable assumption?



More information about the cfe-dev mailing list