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

Sender: root AT delorie DOT com
Message-ID: <37820FD4.1F447791@inti.gov.ar>
Date: Tue, 06 Jul 1999 11:16:52 -0300
From: salvador <salvador AT inti DOT gov DOT ar>
Organization: INTI
X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.0.36 i686)
X-Accept-Language: es-AR, en, es
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: djgpp-workers AT delorie DOT com
Subject: Re: .align directives in libc.a
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990706161046 DOT 28849C-100000 AT is>
Reply-To: djgpp-workers AT delorie DOT com

Eli Zaretskii wrote:

> 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?

I don't know where do you think it can be configured, binutils? because I'm talking
about the current situation:

1) The start of the section is aligned by djgpp.djl
2) The aligment of the functions can be controled by -malign-functions
3) binutils controls the aligment between .o files (8 currently).

I think you are talking about (3) and not (2). Is that correct?

SET

--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
                    set AT ieee DOT org set-soft AT bigfoot DOT com
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013



- Raw text -


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