RE: RE: [Dev-C++] c or c++. that is the question
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <iv...@at...> - 2003-04-24 18:49:06
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Krzysztof Kapuscik > Sent: Thursday, April 24, 2003 4:10 PM > To: Dev...@li... > Subject: Fwd: RE: [Dev-C++] c or c++. that is the question > > > This is not exactly right. One of the reasons why the C++ code could > be larger/slower than C one (not much, just a bit) is that for every > object the '*this' pointer is added to function params. Just putting > it one the stack takes a bit of time and a bit of space... > > Why people need to use C sometimes instead of C++? Because there are > many platforms (especially microcontrollers) for which there is a > C compiler but no C++ is available. Also the object-oriented (C++) > programming (with analysis, optimization) is more complicated than > programming without objects. If a "this" pointer is considered too costly to you then don't use objects in your C++ code. Do you believe that C is better than the procedural paradigm of C++ (the C-subset?). Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |