delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/01/03:42:57

Date: Mon, 1 Dec 1997 10:18:32 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: OPIXLPSHRo <opixlpshro AT aol DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: C or C++???
In-Reply-To: <19971130225301.RAA12714@ladder02.news.aol.com>
Message-ID: <Pine.SUN.3.91.971201101412.7836M-100000@is>
MIME-Version: 1.0

On 30 Nov 1997, OPIXLPSHRo wrote:

> if I don't use objects in a C++
> program does that make it just a plain C program or is there other 
> differences that make C++ different then plain C?

C and C++ are two different languages.  The differences are subtle, but 
very real.  Section 8.3 of the DJGPP FAQ list (v2/faq210b.zip from the 
same place you get DJGPP) has an example which should explain something.

> Also would the program be faster using OOP?

My personal (admittedly, small) experience with C++ programs suggests 
that GCC doesn't optimize C++ code as well as it does with C code.  If 
that is correct, you'd be better off writing your programs in C if you 
care about performance and don't need the C++ features.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019