Hi Greg,
I will give it a try.
I have an IAR v3.30A. I use C++ all the time on MSP430. Actually I get
better code when using C++. Indeed I limit using dynamic memory allocation.
Memory allocation is ok. There are quite a few better memory allocation
routines out there. I tried the two from FreeRTOS. Pretty efficient stuff.
The problem was fragmentation if repeated alloc/freeing is involved. Anyway,
I checked in the changes required to get the c++ compiler working this
is for mspgcc-3.2.3
You need to download gcc-core-3.2.3.tar.bz2 and gcc-g++-3.2.3.tar.bz2
from the gcc site.
from the build procedure when you build gcc, do the following,
$ cp -a gcc/gcc-3.3/* gcc-3.2.3
$ cd gcc-3.2.3
$ ./configure --target=msp430 --prefix=/usr/local/msp430
--enable-languages=c,c++
$ make
$ su
$ make install
and you should get both compilers built.
I actually build them in a separate directory from the source, you can
to this like,
$ cp -a gcc/gcc-3.3/* gcc-3.2.3
> $ mkdir build-gcc
$ cd build-gcc
$ ../gcc-3.2.3/configure --target=msp430 --prefix=/usr/local/msp430
--enable-languages=c,c++
$ make
$ su
$ make install
Regards,
--
Peter Jansen
STS
Antarctic Division
203 Channel Highway
Kingston
TAS 7050
AUSTRALIA
Phone +61 3 6232 3533
___________________________________________________________________________
Australian Government Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not
the
intended recipient, you are notified that use or dissemination of this
communication is
strictly prohibited by Commonwealth law. If you have received this transmission
in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232
3209 and
DELETE the message.
Visit our web site at http://www.aad.gov.au/
___________________________________________________________________________