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


Gunther Nikl wrote:
> On Wed, Apr 13, 2005 at 07:07:07AM +0200, Bernardo Innocenti wrote:
> 
>>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.
> 
> 
>   With the AmigaOS/68k port -fpic/-fPIC is never used at all. The
>   amiga port added a new option (-fbaserel) to produce small-data.

Given it's a target switch, calling it -mbaserel would
probably be a better choice.

>   Small-code is the job of the assembler, not of the compiler. GAS
>   has a '-l' option to use 16bit offset in jumps. This worked with
>   GAS 1.x. When switching to binutils2 '-l' wasn't used anymore.

Didn't know that.  Good to know.

-- 
  // 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]