Re: mspg++ and c++ includes

Paul Sokolovsky <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.user
Message-ID <20130611030051.13d887ec@x34f>
Hello,

On Mon, 10 Jun 2013 17:45:00 -0500
Peter Bigot <[email protected]> wrote:

> C++ is not supported by mspgcc.   Some people are using it to some
> degree with some success, and may be able to provide hints about
> improved compatibility, but no effort has been made to ensure it
> functions.

C++ as a language works really well with mspgcc. Well, C++ is big and
multi-paradigm, the part which is good for embedded works well (that
includes compile-time meta-programming and excludes run-time
cycle-burning, like virtual functions).

Well, it sucks that things like:

=========
struct Timer
{
    const static int irq_no = 10;
};

interrupt(Timer::irq_no) irq_handler()
{
}
=========

don't work, but I put up with that.


C++ stdlib is different story. I recently did a survey of MCU C++ libs
and found it funny that almost everyone (including me) had circular.hpp
or similar in their codebase. So, good-for-embedded things of STL (like,
well, template classes) are definitely a miss and people reinvent the
wheel. https://github.com/vancegroup/stlport-avr may be a good start to
get those.


> 
> It is to be hoped this will be addressed by Red Hat's version.
> 
> 
> On Mon, Jun 10, 2013 at 5:34 PM, Thomas Taranowski
> <[email protected]>wrote:
> 
> > mspg++ seems to be functioning, but all the standard c++ includes
> > seen to be missing.  For example, cstdio, cstdlib, etc.  Am I
> > missing some part of the install, or is this work yet to be done?
> >
> > -Tom


-- 
Best regards,
 Paul                          mailto:[email protected]

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

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.