Rajkishore Barik <[EMAIL PROTECTED]> writes: > Does anyone know of any document describing (in details) the reload phase > of GCC?
There isn't one. The closest such document is http://gcc.gnu.org/wiki/reload which is accurate despite, or perhaps because of, starting out by equating reload with Satan. > I am planning to write a linear scan reload for GCC (one that does not > take reg_renumber > but takes instruction specific register allocation and move information). > Can anyone point me > to some existing code/literature for this in GCC? There is none. If you expect this pass to actually replace reload, then I advise you to reconsider. That would be a hopeless task. Well, maybe you could do it if you restrict yourself to a single architecture. If you want to run this pass in between the register allocator and reload, that would probably be doable. Of course, reload will then muck up your decisions, and the resulting code will sometimes be worse than what you get today. But it might be an interesting experiment. Ian