On Tue, 26 Feb 2002 03:10, Rick Sivernell wrote: > Just there are people writing code who > have no idea of what they are doing & why, C++ in 21 days.
The head of programming development for palm-pilots is quoted as saying that in his experience an equivalent 10k C program (for the palm) blows out to 80k with C++. That this figure expands to unmanageable proportions if Templates are used (aka 'Standard Template Library'). I accept this man's word because he is in the nitty gritty of embedded micro. Bytes, count. Of interest, he states that as a consequence, (and rather than rubbishing C++) he/they use C++ exclusively as a 'better C' that as a result they diminish this overhead to around 15% (eg 10k -> +-15k). This is a very acceptable figure, for the benefits. (my opinion). It is the 'better C' that is most telling, because, per the book of words by Barne Stroustroup he admonishes people to avoid all intention of using C++ as a better C. I do not set myself up to be in the same league (or payscale) as palm pilot, I mention, that I have used C++ in this manner for some time and it is, indeed, an excellent, C. The problem is not so much a programmer in this instance (but I can agree with you), but the ease by which C++ will bloat. It is quite difficult, and, you have to work at it, to prevent it doing so, a bit of knowledge is not enuff. Even if you're "good at it", you can get a few nasty shocks in what you think is accepted, good practice, turns out to be 'discoveries in PorkLand'. This is particularly true if you are conditioned (as Stroustroup encourages) to think modular. While you're sheltered behind a 500meg Dynamic ram stick, you don't wurri too much, in embedded micro things iz different. In contrast, you have to really work at it, with considerable imagination, to make C bloat at all. aaaaaaaah nostalgia, who's for a good asm vs C war? -- http://linux.nf -- [EMAIL PROTECTED] _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
