|
From: Ioannis V. <iv...@at...> - 2003-04-24 01:20:17
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Per Westermark > Sent: Thursday, April 24, 2003 1:58 AM > To: Daniel K. O. > Cc: dev...@li... > Subject: Re: RES: [Dev-C++] Re: C and C++ > > > One problem with bigger code is that just about all > applications larger > than hello world is getting bigger than the processor cache. That, > together with multiple concurrently running programs, make us > loose a lot > of the total processoer capacity in costly cache misses. > > That is one situation where it is a bit easier to optimize in > a C program > - a non-OO program makes it easier to place all costly functions close > together in a single file, letting them better fit in the cache. Or use the procedural paradigm of C++ (the C subset). A language having almost C90 as a subset can't be any slower than C! For direct hardware optimisation the C subset is to be used, that's the rational thing to do. Please people do not confuse that C++ is only OO! Anyone uses the combination of paradigms that fit the purpose. 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 |