This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question about Register Class Allocation
- From: "Balaji V. Iyer" <bviyer at ncsu dot edu>
- To: <gcc at gcc dot gnu dot org>
- Date: Tue, 29 Jan 2008 18:56:03 -0500
- Subject: Question about Register Class Allocation
Hello Everyone,
I am currently working with Gcc 4.0.2 and I have a question
regarding the register allocation.
I saw that regclass() function determines which class of register
the registers in the current units should be assigned to. The question I
have is: Will this decision change in any other parts of the compiler?
or is this this the final place where they fix the register class? So,
if I add my own priority-based register-class assigner, can I just
replace this function and add my own?
Any help is very very much appreciated. Please feel free to contact me
if you need any additional clarification.
Thanks,
Balaji V. Iyer.
--
Balaji V. Iyer
PhD Student,
Center for Efficient, Scalable and Reliable Computing,
Department of Electrical and Computer Engineering,
North Carolina State University.