Mail Archives: djgpp/1996/08/12/16:31:23
Xref: | news2.mv.net comp.os.msdos.djgpp:7128
|
From: | jrubin AT bix DOT com (jrubin)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Alignment of text sections
|
Date: | 10 Aug 1996 02:25:34 GMT
|
Organization: | BIX
|
Lines: | 15
|
Message-ID: | <4ugruu$5e0@news2.delphi.com>
|
NNTP-Posting-Host: | bix.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I compiled a byte code interpreter containing a large switch
statement with the options -O2 -m486. When I looked at the
generated code, I was surprised to see that gcc had
used nop's to align the code for each case,
but had gotten it wrong. It looks like gcc is trying to
put branch targets at the beginning of 16 byte cache lines,
but the alignment of the .text section is wrong.
Is this a problem with the linker script in \djgpp\lib, or
is there something I have to do to turn gcc from a
'pessimizing' compiler into an 'optimizing' compiler?
Josh Rubin
jrubin AT bix DOT com
- Raw text -