This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PIC for mcore
On Apr 27, 2006, at 7:05 PM, Qiuker wrote:
Is there much difference from different PIC implement?
They all do exactly the same thing, allow code to be run at different
addresses, so they are all identical, or, yeah, they can be totally
different from just doing normal codegen and saving the relocs and
fixing the code up at runtime, possibly caching the result of the
relocation to disk to saving even that cost, or allocating pic
related registers, or not allocating such registers, or having those
registers always setup in the prologue to having the prologue not set
up the registers, to having GOTs and PLTs to having stubs and lazy
pointers.
Is it machine related ?
Not usually. More OS related I'd say. Darwin is one flavor, ELF
another, SunOS another, AT&T another, HPUX another, AIX another and
so on... All the same, yet all different.