tags:

views:

343

answers:

5
+1  Q: 

cfront for C++

Is a cfront tool available for the new C++? For any other modern languages?

+2  A: 

What do you mean by “cfront tool”? Cfront was the first C++ compiler. But since failure to add exception support, it has been discontinued. Modern C++ is way beyond the scope of Cfront.

For any other modern languages?

And what do you mean by that? If you mean whether other compilers exist that compile a high-level language into C code then the answer is yes, there are plenty. The Glasgow Haskell Compiler is just one out of many.

Konrad Rudolph
The first cfront converted C++ code into C code, so you could compile it on a C compiler. I gather he's looking for a C++ to C translator.
Paul Tomblin
Ah, yes. Thanks.
Aydya
A: 

I mean a "converter to C". At a point we were used to distinguishing vetween a C++ "compiler" and a cfront "tool" which was probably less meaningless then. Thanks.

Aydya
Note: you should write your answers as comments, to notify user.
PhiLho
Or edit the question (remembering to make it clear what the addition is). Indeed, editing the question is best.
Jonathan Leffler
+2  A: 

I believe a number of languages, at least in their infancy, just "compile" to C code, letting a good compiler (often gcc...) to generate optimized native code. I think GHC is (for some implementations?) such language, and there are some others I don't recall.

I know also lua2c, converting Lua code to C.

PhiLho
+1  A: 

Bigloo

Bigloo enables full connections between Scheme and C programs, between Scheme and Java programs, and between Scheme and C# programs.

Gambit-C

Gambit benchmarks

plan9assembler
+1  A: 

Comeau C/C++ is a C-generating C++ compiler, like cfront.

Sunlight