Hi,
Hi, I'm involved in a project that will use a software written in c++
with the glorious msp430. With this in mind, i try to build the mspgcc
with c++ support, without success. Searching in the archive of this
mailing list don't fix my problem. I follow the installation notes (see
mspgcc-manual from pages 48 to 50).
I have built gcc with c++ installed and I think I had it working, I have
never used it in a production environment though.
I have a gcc-3.3 built with c++ included that will build an msp430-object.
I don't think c++ in implemented on the gcc-3.2 version, and I thought
there were other issues with gcc-3.3, but you could try it.
So, get gcc-3.3.6 (core and g++), and combine with the files from the
msp430 cvs from gcc/gcc-3.4 and you should be able to build c and c++
compilers. You may need to the enable-languages=c,c++, I can't remember.
There is something is gcc/gcc-3.4 which disables libstdc++ and enables
the c++ compiler, but I don't remember what it was at the moment, a few
diff's on the directories should find it, if you want to know.
using the c++ compiler with -fno-rtti -fno-enforce-eh-specs
-fno-exceptions (the default for msp430-gcc-3.3.6) reduces the code size
considerably.
A sample of c code I have built with the c++ compiler (and -O2) turns
out the same size and compiled with the c compiler.
--
Peter Jansen
___________________________________________________________________________
Australian 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/
___________________________________________________________________________