* -malign-*=0 vs 2
@ 1997-12-08 9:35 David Ronis
1997-12-08 22:52 ` Jeffrey A Law
0 siblings, 1 reply; 3+ messages in thread
From: David Ronis @ 1997-12-08 9:35 UTC (permalink / raw)
To: egcs
Several days ago I asked what the correct value for the -malign-* options should
be. The unanimous answer was 0 on a pentium. Fine, but now I'm trying to
use egcs to recompile my kernel (linux 2.0.32) and notice that Linus has hard
coded -malign-*=2 for the 586 architecture. Is this correct for gcc2 but
not for egcs? Is this correct for the kernel? For now, I've changed the values
to zero (for my pentium), but would like someone to comment on why this is
correct, and why Linus is wrong.
David Ronis
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: -malign-*=0 vs 2
1997-12-08 9:35 -malign-*=0 vs 2 David Ronis
@ 1997-12-08 22:52 ` Jeffrey A Law
1997-12-09 7:27 ` Marc Lehmann
0 siblings, 1 reply; 3+ messages in thread
From: Jeffrey A Law @ 1997-12-08 22:52 UTC (permalink / raw)
To: David Ronis; +Cc: egcs
In message < 199712081630.LAA19482@onsager.chem.mcgill.ca. >you write:
> to zero (for my pentium), but would like someone to comment on why this is
> correct, and why Linus is wrong.
I think you would have to ask Linux why he did things like that.
jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: -malign-*=0 vs 2
1997-12-08 22:52 ` Jeffrey A Law
@ 1997-12-09 7:27 ` Marc Lehmann
0 siblings, 0 replies; 3+ messages in thread
From: Marc Lehmann @ 1997-12-09 7:27 UTC (permalink / raw)
To: egcs
On Mon, Dec 08, 1997 at 11:55:23PM -0700, Jeffrey A Law wrote:
> In message < 199712081630.LAA19482@onsager.chem.mcgill.ca. >you write:
> > to zero (for my pentium), but would like someone to comment on why this is
> > correct, and why Linus is wrong.
> I think you would have to ask Linux why he did things like that.
Linus found out that the 16 byte alignment was simply excessive and not necessary.
He did not try to use zero alignment, which should be as fast as 16 byte alignment,
so he stuck with the (IMHO) 4 byte alignment.
Anyhow, kernel speed wasn't that much of an issue, since time-critical paths
are full of hand-optimized assembler anyway, and the memory loss
due to the big alignment was considerable.
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg@goof.com |e|
-=====/_/_//_/\_,_/ /_/\_\ --+
The choice of a GNU generation |
|
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-12-09 7:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-08 9:35 -malign-*=0 vs 2 David Ronis
1997-12-08 22:52 ` Jeffrey A Law
1997-12-09 7:27 ` Marc Lehmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).