Millicode calls, GP register, ld -r
David Huggins-Daines
dhd@linuxcare.com
12 Aug 2000 12:29:31 -0400
"John David Anglin" <dave@hiauly1.hia.nrc.ca> writes:
> The HP linker `-O' option eliminates unnecessary ADDIL instructions
Yes, currently our code generation is absolute crap, because we are
using ADDIL+LDO sequences for absolutely every DP or DLT
relative/indirect access.
Other BFD and GCC targets have optimizations to use 'short' data, bss,
got, and sometimes plt sections when possible. Long term I would
really like to implement this for hppa-linux.
I'm not at all sure how this is done though - can anyone point me to
some code or documentation that explains it?
--
dhd@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.