This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: m68k PIC fixes


Richard Henderson wrote:
> On Wed, Apr 13, 2005 at 06:04:51AM +0200, Bernardo Innocenti wrote:
> 
>>Today, -fpic has lost much of its applicability outside
>>tiny embedded systems.
> 
> If it only impled a small data section, it would still have
> applicability.  Except for the fact that most libraries are
> unconditionally built with -fPIC.  64k is pleanty for lots
> of libraries including libc.

By applying Daniel's patch, we'd get rid of the last bit
where -fpic also implied "small code" for the m68k.

Small-code + small-data is the only way to get fully
relocatable code on the m68000 while retaining good
code quality.

Would anyone be missing it?  On the Amiga, building small
programs like this was a customary way to squeeze out a
few bytes and get rid of all relocations in the executable
file.

-- 
  // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]