[Top][All Lists]

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

Re: [avr-gcc-list] C++

From: E. Weddington
Subject: Re: [avr-gcc-list] C++
Date: Mon, 15 Nov 2004 13:24:36 -0700
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

Ron Kreymborg wrote:

I have been experimenting with WinAvr's C++ implementation and I am
pleasantly surprised. There is not a great deal you cannot do. With some
of the bigger AVRs the old bogey of "C++ bloat" has become less of an
issue, and in fact the bigger our programs get the more the advantages
of C++ take over from C.

However, I remember converting a 30K C program to C++ on the MC68332 MRM
using a full blown gcc, thoughtfully replacing my queue code with a
queue<> and seeing the code size jump 100K!

So I would like to propose implementing a subset of libstdc++ that would
be suitable for a micro like the AVR. One feature that comes to mind and
currently missing are pure virtual functions. I do not know enough about
managing a gnu project to start this myself, but I would sure like to
play a part. Those interested could perhaps get together and come up
with an agreed upon subset. Maybe this list could be the place for
initial suggestions, and subsequently the implementers could report from
time to time.

Any interest?


Especially if you have the C++ expertise to implement such a thing.

This has been discussed before, especially on the avr-libc-dev list (where perhaps this thread should be moved). Some things that have been discussed before:

1. The subset of libstdc++ that would be implemented is probable along the lines of libsupc++. See:

2. Licensing issues. avr-libc is licensed under Modified BSD, mainly because of usage in embedded products. The proposed C++ lib should be compatible.

3. Another possibility is using STLport:
But AFAIK it hasn't been built for the AVR target yet.


reply via email to

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