mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Aldy Hernandez <aldyh@redhat.com>
To: J Sloan <joe@tmsusa.com>
Cc: vda@port.imtp.ilyichevsk.odessa.ua,
	"Albert D. Cahalan" <acahalan@cs.uml.edu>,
	linux-kernel@vger.kernel.org
Subject: Re: keep code simple
Date: 27 Jul 2002 13:24:32 -0700	[thread overview]
Message-ID: <m3vg70kjgf.fsf@flamingo.sfbay.redhat.com> (raw)
In-Reply-To: <3D42F1DA.5060309@tmsusa.com>


 >> A bit offtopic, but: I heard M$ and Intel compilers beat GCC
 >> by 20-40% in terms of code size. Why GCC is so much behind?
 >> 
 > er...

 > one big reason is that gcc is cross platform, while
 > ms and intel can cut corners and optimize for x86

That and most of gcc's optimizations are done at the RTL level, which
is just a glorified assembler.  IIRC the original GCC optimizer was
based on the U of Arizona optimizer which was just an assembly
optimizer.  Consequently higher lever optimizations, which every
serious compiler (but gcc) do, are unbeknownst to gcc.

If you lower the high level code too much (like gcc does), you loose
certain abstractions such as loops, that could benefit enormously from
high lever optimizations.

Diego Novillo is doing a lot of infrastructure work for gcc so we can
do these high level optimizations, but that's a bit far in the
horizon.

Cheers.

Aldy

      reply	other threads:[~2002-07-27 20:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-27  3:23 Albert D. Cahalan
2002-07-28  0:05 ` Denis Vlasenko
2002-07-27 19:17   ` J Sloan
2002-07-27 20:24     ` Aldy Hernandez [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=m3vg70kjgf.fsf@flamingo.sfbay.redhat.com \
    --to=aldyh@redhat.com \
    --cc=acahalan@cs.uml.edu \
    --cc=joe@tmsusa.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vda@port.imtp.ilyichevsk.odessa.ua \
    /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

all inboxes | Powered by JetHome®