From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110292,f679b04ea72eb590 X-Google-Attributes: gid110292,public X-Google-Thread: 100cc1,f679b04ea72eb590 X-Google-Attributes: gid100cc1,public X-Google-Thread: f57db,f679b04ea72eb590 X-Google-Attributes: gidf57db,public X-Google-Thread: 1164f8,f679b04ea72eb590 X-Google-Attributes: gid1164f8,public From: peterm@tonks.EECS.Berkeley.EDU (Peter Mardahl) Subject: Re: DEC 5000/133 vs Pentium Date: 1995/05/08 Message-ID: <3om4s3$aii@agate.berkeley.edu>#1/1 X-Deja-AN: 102296430 references: <3mkrhi$88l@larch.cc.swarthmore.edu> <3ocn3n$m8f@news.cloud9.net> <3odrqd$4c5@agate.berkeley.edu> <3om1pi$km8@therag.zso.dec.com> organization: University of California, Berkeley newsgroups: comp.unix.pc-clone.32bit,comp.sys.dec,comp.sys.intel,comp.benchmarks In article <3om1pi$km8@therag.zso.dec.com>, Carl J. Appellof wrote: >>Actually, I just tested g++ vs. cc on a short snippet of C code I >>used to measure the memory bandwidth of an Alpha 200 4/233 machine. >>g++ was FASTER. > >Was this on Digital UNIX (formerly DEC OSF/1) ? Yes. >The last time I worked on that system, (about 6 months ago), there were 2 different >vendor C compilers: The giveaway one invoked with "cc", and the one you had >to pay for, invoked with "cc -migrate". Guess which one produced better code? > I tested the same snippet of code on cc -migrate -O4. It proved 8% faster than g++ -O3. gcc -O3 was actually slower than g++, but not by a significant amount, less than error of measurement I bet. Once again I note that this isn't a scientific test. I'd love to see SPEC benchmarks done with different compilers on the same platform! But thanks for the hint on -migrate: anything I compile with cc is going to get that flag now! Regards, Peter Mardahl