Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programming languages that compile into C/C++ source? [closed]

I'm using CoffeeScript to make JavaScript development easier. It's a language with clean syntax that compiles into JavaScript.

So, what are the established programming languages that compile into C/C++ source code, to simplify syntax and/or enhance functionality?

like image 811
Jeff Avatar asked Jun 27 '11 20:06

Jeff


People also ask

Which programming language is closed source?

Examples include VBScript, c#, Matlab, Microfocus COBOL, and IBM's mainframe, AIX, and linux compilers. There are also programming languages that are used inside a company, but the compiler is not made available outside the company, or has very limited distribution. IBM's PL/S and its derivatives are a classic example.

What programming language is closest to C?

Javascript has a reasonably C-like syntax, and it's a very popular language. Javascript has a lot of quirks, but it has one powerful similarity to C - it's simple.

Does C++ compile to C?

No. C++ -> C was used only in the earliest phases of C++'s development and evolution. Most C++ compilers today compile directly to assembler or machine code. Borland C++ compiles directly to machine code, for example.

Is the C language open source?

The C language is not a piece of software but a defined standard, so one wouldn't say that it's open-source, but rather that it's an open standard. There are a gazillion different compilers for C however, and many of those are indeed open-source.


1 Answers

The language Haxe can output to C++, C#, Java, JavaScript, Python(experimental), PHP, Flash and NekoVM.

like image 179
M.Stoffregen Avatar answered Sep 21 '22 12:09

M.Stoffregen