tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] modern c++ compiler written in C


From: Basile Starynkevitch
Subject: Re: [Tinycc-devel] modern c++ compiler written in C
Date: Fri, 23 Oct 2015 10:07:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.3.0

On 10/23/2015 07:37 AM, address@hidden wrote:
Cfront was targeted at pre-ANSI C compilers.  C++ introduced
function prototypes and C89 got them from there.


Modern C++ means at least C++11 today.

C++11 is a quite complex language. AFAIK only two free software compilers support it: GCC and Clang/LLVM.

Both are coded in C++, but old versions of GCC have been coded in C.

If you only have a C99 compiler available, the usual way to get a C++11 compiler is to

compile a GCC which have been coded in C (not C++). So start with GCC 4.4.

Then compile GCC 4.4 with your C compiler.

compile the next version of GCC with the previous one, so

    compile GCC 4.5 with GCC 4.4
    compile GCC 4.6 with GCC 4.5
    compile GCC 4.7 with GCC 4.6

if you are lucky, you might you might skip odd versions, e.g.

    compile GCC 4.6 with GCC 4.4
    compile GCC 4.8 with GCC 4.6
    compile GCC 5.2 with GCC 4.8

you could replace the last step with compiling Clang/LLVM (e.g. 3.7) with your last GCC


Cheers

--
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]