public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC on IRIX 6.5
@ 2000-12-15  7:59 Ramesh Babu
  2000-12-16  4:58 ` Alexandre Oliva
  0 siblings, 1 reply; 3+ messages in thread
From: Ramesh Babu @ 2000-12-15  7:59 UTC (permalink / raw)
  To: gcc-help

OS	:IRIX 6.5
System	:SGI O2
GCC ver.:2.95.2
Linker	:SGI linker
"as"	:SGI as

Hi all,

	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. So, I compiled
gcc from the source and still things did not improve much. Can any one
tell me why. Is there a way to improve gcc performance. Any help will be
appreciated.

Thanks

Ramesh Babu

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GCC on IRIX 6.5
  2000-12-15  7:59 GCC on IRIX 6.5 Ramesh Babu
@ 2000-12-16  4:58 ` Alexandre Oliva
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Oliva @ 2000-12-16  4:58 UTC (permalink / raw)
  To: Ramesh Babu; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: GCC on IRIX 6.5
@ 2000-12-15  8:15 David Korn
  0 siblings, 0 replies; 3+ messages in thread
From: David Korn @ 2000-12-15  8:15 UTC (permalink / raw)
  To: 'Ramesh Babu', gcc-help

>-----Original Message-----
>From: Ramesh Babu [ mailto:rbabu@kelvin.ncl.res.in ]
>Sent: 15 December 2000 03:49
>To: gcc-help@gcc.gnu.org
>Subject: GCC on IRIX 6.5


>OS	:IRIX 6.5
>System	:SGI O2
>GCC ver.:2.95.2
>Linker	:SGI linker
>"as"	:SGI as

>Hi all,
>
>	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. So, I compiled
>gcc from the source and still things did not improve much. Can any one
>tell me why. Is there a way to improve gcc performance. Any help will be
>appreciated.

  For reasons that I have no understanding of at all, gcc on some hosts
is configured to include quite a lot of debugging and relocation symbols
in the files it compiles. In this case you can generally get the file size
back down again by using the strip command (part of binutils).

      DaveK
-- 
The Boulder Pledge: "Under no circumstances will I ever purchase anything 
offered to me as the result of an unsolicited email message. Nor will I 
forward chain letters, petitions, mass mailings, or virus warnings to large 
numbers of others. This is my contribution to the survival of the online
community." 


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-12-16  4:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-15  7:59 GCC on IRIX 6.5 Ramesh Babu
2000-12-16  4:58 ` Alexandre Oliva
2000-12-15  8:15 David Korn

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