Related articles |
---|
[14 earlier articles] |
Re: is C necessarily faster than C++ quanstro@hp-demo1.minerva.bah.com (1995-04-28) |
Re: is C necessarily faster than C++ beard@cs.ucdavis.edu (Patrick C. Beard) (1995-04-28) |
is C necessarily faster than C++ ka@socrates.hr.att.com (1995-04-28) |
Re: is C necessarily faster than C++ jplevyak@pink-panther.cs.uiuc.edu (1995-04-29) |
Re: is C necessarily faster than C++ tmb@netcom.com (1995-04-29) |
Re: is C necessarily faster than C++ jdean@pysht.cs.washington.edu (1995-05-09) |
Re: is C necessarily faster than C++ calder@mumble.cs.Colorado.EDU (1995-05-09) |
Re: is C necessarily faster than C++ schow@bnr.ca (stanley (s.t.h.) chow) (1995-05-09) |
Re: is C necessarily faster than C++ mike@vlsivie.tuwien.ac.at (1995-05-04) |
Re: is C necessarily faster than C++ bill@amber.ssd.hcsc.com (1995-05-16) |
Re: is C necessarily faster than C++ itcp@praxis.co.uk (1995-06-23) |
Re: is C necessarily faster than C++ jplevyak@violet-femmes.cs.uiuc.edu (1995-06-23) |
Re: is C necessarily faster than C++ bill@amber.ssd.hcsc.com (1995-06-30) |
[1 later articles] |
Newsgroups: | comp.compilers |
From: | calder@mumble.cs.Colorado.EDU (Brad Calder) |
Keywords: | C, C++, performance |
Organization: | Compilers Central |
References: | 95-04-044 95-04-153 |
Date: | Tue, 9 May 1995 04:57:26 GMT |
Urs Hoelzle <urs@engineering.ucsb.edu> writes:
> Actually, I don't buy that - I believe the proper conclusion from the
> paper is "current C++ compilers don't optimize C++ programs as well as
> current C compilers optimize C programs". In other words, much of the
> difference is in the compilers and not the languages.
C and C++ are going to have performance differences because the
languages use differing constructs (e.g. the high usage of indirect
calls in C++). Though, I do agree that with the proper optimizations
the performance differences will diminish. This is one of the points
we had in our paper, that C++ programs require different compiler
optimizations than C in order to bring its performance closer to C.
Our paper tried to stress that the performance of C++ can be improved
via compiler optimizations and certain optimizations will have a
greater benefit for C++ than C. A new version of the paper can be
found in:
http://www.cs.colorado.edu/homes/calder/public_html/
in the file called JplVersion.ps
This is the version of the paper that will appear this month (I believe)
in the Journal of Programming Languages.
Brad Calder
University of Colorado
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.