1/1
about GPRs
by Unknown on Jan 2, 2004 |
Not available! | ||
Hi all,
I have a question on general purpose registers(GPRs). According to architecture manual, the openrisc can be implemented with sixteen or thirty-two 32/64 bit general purpose register. My question is how the gnu complier knows the architecture with 16 or 32 GPRs? I mean if there are any options in compiler indicate how many GPRs there are in the target device? Thank you very much. Stepen |
about GPRs
by Unknown on Jan 3, 2004 |
Not available! | ||
Hi all,
I have a question on general purpose registers(GPRs). According to architecture manual, the openrisc can be implemented with sixteen or thirty-two 32/64 bit general purpose register. My question is how the gnu complier knows the architecture with 16 or 32 GPRs? I mean if there are any options in compiler indicate how many GPRs there are in the target device? the number of target registers is (in priciple) a parameter to compiler. to compile some c code for target with 16 GPRs one should define GPRs 16-31 fixed. (for example like -ffixed-r2 is used in linux to store the 'current' pointer) regards, p. |
1/1