www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/07/01/00:47:08

Date: Thu, 1 Jul 1999 07:43:21 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp-workers AT delorie DOT com
cc: Robert Hoehne <robert DOT hoehne AT gmx DOT net>, Eric Rudd <rudd AT cyberoptics DOT com>
Subject: .align directives in libc.a
Message-ID: <Pine.SUN.3.91.990701074005.22046A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

I see that the behavior of `.align' in Binutils 2.9.1 has changed for
coff-go32 targets: ".align N" is now the same as ".p2align N", whereas
in 2.8.1 and before it worked like ".balign N".  This probably means
that we need to change library sources, but how?  What code alignment
do we want, and with what value should we instruct the Gas to pad?

Intel manuals seem to recommend 16-byte alignment, both for code and
for data.

Btw, some library sources use ".align 2", while other (the majority)
use ".align 4".  Examples of the former include crt0.S and the new
powi.S (written by Eric Rudd).  Is use of 2 intentional in these
cases, and if so, does it mean ".p2align 2" or ".balign 2"?

- Raw text -


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