tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] CFront for TinyCC?


From: grischka
Subject: Re: [Tinycc-devel] CFront for TinyCC?
Date: Fri, 05 Dec 2014 11:14:55 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Roy Tam wrote:
Hello,

from an old thread (
https://lists.gnu.org/archive/html/tinycc-devel/2008-11/msg00024.html
) :

Also would be nice to have some C++ support, but it could be very difficult, I 
lost the hope to have a superfast C++ compiler.
I once have made some experiments with the historical "CFRONT AT&T C++
to C Translators", with TCC used for the PP and the C to OBJ part.

It works quite well, with both cfront 1.0 (1986) and cfront 3.0.3 (1997).
If someone is interested I can post more information.  Note however that
even the latter version is not about today's C++ (although close already).


grischka, I wonder if you can give more details about this (and
hopefully with source files).
Thanks.

Historical cfront sources (1.0 and 3.0.3) are here:
http://www.softwarepreservation.org/projects/c_plus_plus

IIRC one thing that needs to be fixed are expanded "getc" macros in
the bootstrap C files (scratch dir) as they refer to a struct FILE
which likely is not what you have nowadays.

A patch for 1.0 attached.  All from 2007. no warranty whatsoever.

-- gr


Regards,
Roy


Attachment: cf1.patch.tar.bz2
Description: Binary data


reply via email to

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