Mail Archives: djgpp/1997/12/01/03:42:57
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 -