Date: Mon, 1 May 2000 19:17:16 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: [long] gcc performance and possible bug In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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 ;-).