From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,e2809acb5ea7116c X-Google-Attributes: gid1164f8,public From: peterm@landau.EECS.Berkeley.EDU (Peter Mardahl) Subject: Re: Optimized C++ Date: 1995/07/25 Message-ID: <3v3qov$fi2@agate.berkeley.edu>#1/1 X-Deja-AN: 106867067 references: <1995Jul25.133008.23493@hrbicf> organization: University of California, Berkeley newsgroups: comp.sys.dec In article <1995Jul25.133008.23493@hrbicf>, Paul H. Purdom 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