[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] Comments on using avr-c++ ?

From: Artur Lipowski
Subject: RE: [avr-gcc-list] Comments on using avr-c++ ?
Date: Wed, 26 Feb 2003 08:43:33 +0100

> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden Behalf Of Bob Halford
> Sent: Wednesday, February 26, 2003 4:58 PM
> To: address@hidden
> Subject: [avr-gcc-list] Comments on using avr-c++ ?
> Looking at rewriting existing C code for a  90s443/ mega8 project using
> c++. I realise the
> code will grow and slow a bit but objectifying it may help
> maintainability. Any comments?
I think, it is interesting question
My experience shows that in case of projects (not associated with
microcontrollers) which resulting binary can fit into micro FLASH - using
C++ is usually waste of time and effort.
As you sed, maintainability is main goal in large projects but it not
justify using such monster like C++.
I found that good maintainability can be achieved using better project
design and better documentation (I know, it is boring 8-). Using OO approach
does not guarantee nothing and as my practice shows when used by not
experienced people it brings only more mess.
To be clear - I am not against C++ at all (in fact I use it, Python and Java
for years) but 8 bit micros are not for that language and this language is
not for that micros.

Instead using C++ you can use some OO techniques in design phase and some
can be implemented (with ease) in plain C without C++ overhead.

Artur Lipowski

reply via email to

[Prev in Thread] Current Thread [Next in Thread]