register-allocation

Can you recommend some good references on code generation in a compiler (intermediate representations, SSA, instruction selection, register allocation, etc.)?

I have the dragon book and Modern Compiler Implementation in ML. I'm looking for other good resources on code generation in a compiler. Can you recommend any? ...

Callee save with the caller passing the used registers?

In compiler design, why instead of having a caller or callee register saving arrangement, couldn't the caller pass its list of used registers (that it would push in case of a caller saving arrangement) to the callee so that the callee can compare its list of used registers to the registers used by the caller. Then only the registers that...

Address of register variable

In C, we cannot use & to find out the address of a register variable but in C++ we can do the same. Why is it legal in C++ but not in C? Can someone please explain this concept in-depth. Thanks, Naveen ...

Register allocation and spilling, the easy way?

I'm looking for a way to allocate local variables to registers. I'm aware of a couple of serious methods for doing it (namely, those mentioned on Wikipedia), but I'm stuck on how "spilling" is accomplished. Also, the relevant literature is quite intimidating. I'm hoping there's something simpler that will satisfy my priorities: Corr...

Performing compiler allocation of memory on the stack of different sizes

I've been constructing my own compiler and one large part of it is obviously the register allocator, which matches up temporary variables with machine registers as efficiently as possible. On an architecture such as the x86 there aren't many registers so there are a number of spills in which variables must be stored in memory (the stack)...

efficacy of register allocation algorithms!

i'm trying to do a research/project on register allocation using graph coloring where i am to test the efficiency of different optimizing register allocation algorithms in different scenarios. how do i start? what are the prerequisites and the grounds with which i can test them. what all algos can i use? -------------addition----------...