Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: peterm@landau.EECS.Berkeley.EDU (Peter Mardahl)
Subject: Re: Optimized C++
Date: 1995/07/25	[thread overview]
Message-ID: <3v3qov$fi2@agate.berkeley.edu> (raw)
In-Reply-To: 1995Jul25.133008.23493@hrbicf

In article <1995Jul25.133008.23493@hrbicf>, Paul H. Purdom <php> wrote:
>I'm trying to optimize some math intensive C++ code on an Alpha 4/275,
>running OSF1.  The standard DEC cxx compiler doesn't seem to do a very good 
>job.  The GNU compiler does better.

I'm not impressed at all with the optimization done by GNU's C++ 
compiler either.  C++ compilers in general seem pretty lame--
Borland C++ also didn't seem that impressive.  We ran some simple
tests and g++ code (using classes and functions which are supposedly
inlined) was about 8 times slower than a C implementation of the
same functionality.  A simple, brain-dead case, but we also
see a factor of 2 or 3 in larger programs.

Watcom c++ and microsoft c++ have good reputations for optimizing,
but I doubt they exist for the Alpha.

I tested Borland C++ on a Pentium-box and g++ on an Alphastation.


>Does anyone know how I can get better performance out of our C++ code?
>Is there a C++ equivalent to kcc?


PeterM



  reply	other threads:[~1995-07-25  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-07-25  4:00 Optimized C++ Paul H. Purdom
1995-07-25  4:00 ` Peter Mardahl [this message]
1995-07-27  4:00   ` Peter Mayne
1995-07-28  4:00 ` R. van der Wal
  -- strict thread matches above, loose matches on Subject: below --
1995-07-27  4:00 Wim Colgate
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox