public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Marc Lehmann <pcg@goof.com>
To: egcs@cygnus.com
Subject: Re: -malign-*=0 vs 2
Date: Tue, 09 Dec 1997 07:27:00 -0000	[thread overview]
Message-ID: <19971209123139.11886@cerebro.laendle> (raw)
In-Reply-To: <12710.881650523@hurl.cygnus.com>

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                        |
                                                          |

      reply	other threads:[~1997-12-09  7:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-08  9:35 David Ronis
1997-12-08 22:52 ` Jeffrey A Law
1997-12-09  7:27   ` Marc Lehmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19971209123139.11886@cerebro.laendle \
    --to=pcg@goof.com \
    --cc=egcs@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).