public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@redhat.com>
To: Ramesh Babu <rbabu@kelvin.ncl.res.in>
Cc: gcc-help@gcc.gnu.org
Subject: Re: GCC on IRIX 6.5
Date: Sat, 16 Dec 2000 04:58:00 -0000	[thread overview]
Message-ID: <orzohwwmiq.fsf@guarana.lsd.ic.unicamp.br> (raw)
In-Reply-To: <Pine.LNX.4.10.10012150906270.6656-100000@kelvin.ncl.res.in>

On Dec 15, 2000, Ramesh Babu <rbabu@kelvin.ncl.res.in> wrote:

> 	I have installed precompiled binary version of gcc from SGI. I
> found that the binaries generated by GCC almost always are 50% bigger,
> when compared to the that generated by GCC on LINUX system.

Are you talking about GNU/Linux running on mips or on x86?  If the
latter, it's not too hard to understand why binaries are a bit larger
on MIPS: MIPS is a RISC processor, with fixed-size simple
instructions, whereas x86 is a CISC processor in which common
instructions are often smaller.

Another reason why binaries may be significantly smaller is that
GNU/Linux installations often come with several GCC libraries
installed as shared libraries, but this will only happen on IRIX if
GCC is configured with --enable-shared.  Without shared libraries,
each program will get a copy of symbols it needs from the libraries,
so each program grows in size.

> Is there a way to improve gcc performance.

Do you mean making the compiler faster, or making it generate faster
code?  Both can generally be accomplished by tuning the target CPU of
GCC, or enabling certain optimizations that are not enabled by
default, but the former will require rebuilding GCC so as to apply
these optimizations onto itself.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

  reply	other threads:[~2000-12-16  4:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-15  7:59 Ramesh Babu
2000-12-16  4:58 ` Alexandre Oliva [this message]
2000-12-15  8:15 David Korn

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=orzohwwmiq.fsf@guarana.lsd.ic.unicamp.br \
    --to=aoliva@redhat.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=rbabu@kelvin.ncl.res.in \
    /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).