Saga of m68k PIC continues
Peter Barada
pbarada@mail.wm.sps.mot.com
Thu Dec 12 13:50:00 GMT 2002
While looking at the PIC code, I'm wondering if there is a way to
suppress setting up the global_table register if:
1) the funciton is static
2) the function's address is not taken
3) the function is a leaf.
If so then:
lea (%pc, _GLOBAL_OFFSET_TABLE_@GOTPC), %a5
doesn't need to be done in the function prologue since all callers to
the function have already setup %a5. As long as the function doesn't
modify %a5, everthing should just work...
--
Peter Barada Peter.Barada@motorola.com
Wizard 781-852-2768 (direct)
WaveMark Solutions(wholly owned by Motorola) 781-270-0193 (fax)
More information about the Gcc
mailing list