www.delorie.com/archives/browse.cgi | search |
From: | sparhawk AT eunet DOT at (Gerhard Gruber) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: C vs C++ |
Date: | Tue, 16 Jun 1998 21:33:02 GMT |
Organization: | Customer of EUnet Austria |
Lines: | 25 |
Message-ID: | <358fdc42.4262990@news.Austria.EU.net> |
References: | <199806152230390650 DOT 001F6C6E AT pogwizd DOT tcs DOT uni DOT wroc DOT pl> |
NNTP-Posting-Host: | e190.dynamic.vienna.at.eu.net |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Destination: "Pawel Kowalski" <pk AT tcs DOT uni DOT wroc DOT pl> From: Gruber Gerhard Group: comp.os.msdos.djgpp Date: Mon, 15 Jun 1998 22:30:39 +0200: >Are there any differences in the question of speed >between executables of the same source codes (consisting >of only basic C functions) compiled in C and C++ by gcc? > >(I used to think that C++ is slower for it's objective >language, and I don't know whether it's true or not...) This is just a guess but as long as you only use normal C functions and style the code should be the same. If you start using certain C++ features then the code becomes bigger and slower because of some overhead (i.e. virtual functions). -- Bye, Gerhard email: sparhawk AT eunet DOT at g DOT gruber AT sis DOT co DOT at Spelling corrections are appreciated.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |