Mail Archives: djgpp-workers/1999/07/08/13:44:54
Eli Zaretskii wrote:
> On Wed, 7 Jul 1999, salvador wrote:
>
> > > And the same goes for the .align directives emitted
> > > by GCC, for function entry points and labels?
> >
> > They are normally 8 bytes or less for djgpp.
>
> In what version? 2.7.2.1 emits ".align 2", which is 4 bytes with
> Binutils 2.8.1.
I'm talking about the binutils aligment between .o files, nothing related to
gcc.
That's the value that is limiting you (the comment was about the problem you'll
have trying to align to 16 bytes boundaries).
> > Let me see what about gcc 2.96 new experimental optimization branch ....
> > Wow! it uses .align 16 by default for Linux (-O9 just in case ;-),
> > let me see a loop...
> > .p2align 4! for entry points of loops.
>
> So it seems the GCC maintainers go in that direction also.
At least for the experimental branch.
> Is this alignment specific for Linux, or will GCC do the same in the
> DJGPP configuration?
I had very important problems to compile this branch in DOS. I got an stage 3
compiler but I'm not so sure about how well configured is.
I'll test this compiler this weekend (long for me because this friday is our
independence day).
> If it won't do so by default for DJGPP, is it
> hard to make it do so? Andris, is this change, if it is needed, also
> hard, like what you described yesterday for the filler value? If not,
> I think we should use the same alignment as Linux does.
>
> > I didn't time to run the benchmarks with it.
> > Is not very smart with the function starts (pushing all :-(
>
> If 2.95 is smarter, you could compile the benchmarks with -malign-*
> switches that force 16-byte alignment. As far as alignment goes, this
> would give you the same effect. Of course, you will need Binutils
> configured with 16-byte subsection alignment, to really see the
> effect.
I already got the patched 2.9.1.
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 -