www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/07/06/11:14:59

Date: Tue, 6 Jul 1999 16:14:56 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: salvador <salvador AT inti DOT gov DOT ar>
cc: djgpp-workers AT delorie DOT com
Subject: Re: .align directives in libc.a
In-Reply-To: <378200AB.B0EC3DF6@inti.gov.ar>
Message-ID: <Pine.SUN.3.91.990706161046.28849C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 6 Jul 1999, salvador wrote:

> The main problem is the fact that we must align all the code to 16 bytes if the
> user wants to align your functions to 16 bytes.

I don't understand why this is true.  The .text section must be aligned 
to 16 bytes, which wastes 15 bytes at most, but once .text is 16-byte 
aligned, any user-defined function can be aligned to 16-byte no matter 
what the rest of the code does: just emit the ".align" directive.  Or am 
I missing something?

> Aligning to 16 bytes is good but will bloat libc a little bit.

I think ".balign 16,,7" doesn't bloat too much, and it's what Intel 
recommends.  But I don't know if GCC/EGCS can be told to use this.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019