C++ vs C compiler on size

yeh@netcom.com (Zhenghao Yeh)
7 Jan 1997 12:33:56 -0500

          From comp.compilers

Related articles
C++ vs C compiler on size yeh@netcom.com (1997-01-07)
Re: C++ vs C compiler on size robison@kai.com (Arch Robison) (1997-01-09)
Re: C++ vs C compiler on size fjh@mundook.cs.mu.OZ.AU (1997-01-12)
Re: C++ vs C compiler on size bill@amber.ssd.csd.harris.com (1997-01-12)
Re: C++ vs C compiler on size jlilley@empathy.com (1997-01-12)
Re: C++ vs C compiler on size schow@nortel.ca (Stanley Chow) (1997-01-14)
Re: C++ vs C compiler on size jwdonah@ibm.net (Joseph Donahue) (1997-01-14)
[2 later articles]
| List of all articles for this month |

From: yeh@netcom.com (Zhenghao Yeh)
Newsgroups: comp.compilers
Date: 7 Jan 1997 12:33:56 -0500
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
Keywords: C, C++, code

Hi!


On average, how much bigger the code generated by C++ compiler than C
compiler? Well, you may answer that this depends which compiler is
used and what C++ features are used. Assume we have C code, we use
both C++ and C compiler. Is the size of the generated code supposed to
be same?


If the answer is positive. Then here is the interesting question:
How much overhead we have to pay if we need:
1. inheritance?
2. virtual functions?
3. template?


- Yeh
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.