Hello,

On Mon, 10 Jun 2013 23:00:43 -0400
Peter Johansson <rockets4k...@gmail.com> wrote:

> On Mon, Jun 10, 2013 at 8:00 PM, Paul Sokolovsky <pmis...@gmail.com>
> wrote:
> 
> > C++ as a language works really well with mspgcc.
> > C++ stdlib is different story.
> 
> The vast majority of MSP430s are rather limited in capabilities and
> this is borne out in even in the C library. Outside of the
> micro-controller realm, many people use C++ (effectively) for the
> library support, and that is one thing you won't get for any small
> micro.  

These are tales from previous century. There were dispelled many
times (e.g.
http://stackoverflow.com/questions/812717/is-there-any-reason-to-use-c-instead-of-c-for-embedded-development),
including by respectable organizations
(http://www.open-std.org/jtc1/sc22/wg21/docs/TR18015.pdf).

Of course, that's party due to fact that when people hear "C++", they
picture 30-old C++ with "objects" which are by now a trivial thing, or
or poor implementation of exceptions, or something. When speaking about
C++, one rather should imagine Lisp with its macros and how they were
twisted into "templates" which gave birth to modern C++ and is its
central part.

> If you want to venture into the world of C++ for micros, you
> are going to be writing your own libraries.

Yes, that's how it has been for now, example was given. I also gave an
example that it changes and will be changing further (someone will drop
"-avr" from that stlport port, because there's of course nothing in
there which got to be AVR-specific in it).

> At least one person on this list has put the C++ capabilities of
> mspgcc to excellent use.  Perhaps he might be persuaded to share...

I humbly can propose my piece:
https://github.com/pfalcon/PeripheralTemplateLibrary is a humbly named
(template) lib with the aim of providing consistent programming
interface (up to the level of writing portable apps) for all possible
and impossible MCUs (8051 is in queue too, blocked by lack of
open-source C++ compiler for it), without sacrificing performance
(should be much better than any C lib with similar aims and not much
worse than Asm).

> 
> -p.
> 

-- 
Best regards,
 Paul                          mailto:pmis...@gmail.com

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to