[Top][All Lists]

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

Re: [Tinycc-devel] TinyC++

From: Basile Starynkevitch
Subject: Re: [Tinycc-devel] TinyC++
Date: Fri, 29 Oct 2010 20:58:15 +0200

On Fri, 29 Oct 2010 13:08:46 -0500
"Rick C. Hodgin" <address@hidden> wrote:
> Do you have any thoughts about implementing a minimalistic C++ extension
> to TinyCC, specifically that includes only the class, public/ protected/
> private, inheritance, member functions (virtual or no), and that's
> basically it?

I definitely won't do that myself (but you are free to try)! If you
understood that I was interesting in doing this, sorry, I expressed
myself wrongly.

However, I remember having seen, perhaps on sourceforge, some project
which accept a quasi tiny subset of C++ code and emitted C
code. I forgot the name. There is also nwcc.sourceforge.net which is a
small (but bigger than TinyCC) C compiler quite interesting..

> The idea would be the encapsulation of the base C++ design, but without
> all the bloat, the ability to create a quick application that would
> compile under any C++ compiler, but using only these features.

Maybe you want to look at the Embedded C++ specification.
http://www.caravan.net/ec2plus/ But there does not seems to be any
freely available implementation (you'll need a full g++); it seems to
be only a specification with guiding lines.

And such a subset of the langage is practically not very useful. For
instance, imagine a student beginning to code in such a small subset of
C++. His own code will indeed use a small part of C++, be he will very
probably use C++ iostream-s, and these seems to require all of C++ (ie
templates, multiple-inheritance, exceptions, overloading). So you won't
be able to give with a small subset of C++ all the usual and common API
C++ newbies are expecting.

Maybe you might be more happy with a tiny compiler for Vala see 

But again, I hope you did not understood I want to help implement that.
I don't have lot of interest and certainly not enough time.

BTW, are people able to use reliably tinycc on AMD64/Linux (in 64 bits
mode)? I am not...

Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***

reply via email to

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