delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/01/11:14:16

Date: Mon, 1 May 2000 19:17:16 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: [long] gcc performance and possible bug
In-Reply-To: <ir0rgs0i8ca5ghgbqu1jruip7rdm2knkk9@4ax.com>
Message-ID: <Pine.SUN.3.91.1000501191331.11979F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 1 May 2000, Damian Yerrick wrote:

> What about moving all static constants to the _end_ of a code segment?

I'm guessing that the linker assigns addresses to objects in each 
section in the order it sees them during linking.  If so, the data
will be interspersed with code, as determined by the order of object 
modules processed by the linker.

So gathering data at one place might be simply impossible without 
changing the linker too much.

I'm further guessing that the ELF format doesn't have this problem, so it 
probably doesn't bother Linux users ;-).

- Raw text -


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