Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Have you used any of the C++ interpreters (not compilers)? [closed]

I am curious if anyone have used UnderC, Cint, Cling, Ch, or any other C++ interpreter and could share their experience.

like image 664
Allan Wind Avatar asked Sep 16 '08 05:09

Allan Wind


People also ask

Does C use compiler or interpreter?

Programming languages like JavaScript, Python, Ruby use interpreters. Programming languages like C, C++, Java use compilers.

Does C have an interpreter?

Interpreters are used by programming languages like Ruby and Python for example. Compliers are used by programming languages like C and C++ for example.

What are the examples of compilers and interpreters?

Examples of compiled programming languages are C and C++. An Interpreter directly executes instructions written in a programming or scripting language without previously converting them to an object code or machine code. Examples of interpreted languages are Perl, Python and Matlab.

Why would you use a compiler over an interpreter?

Advantages: Compiler over Interpreter An intermediate code is also known as the Object code generated which can then be used each time the program is to be run, thus eliminating the need for compiling the source program each time. Compiling a program is usually faster than interpreting it.


1 Answers

There is cling Cern's project of C++ interpreter based on clang - it's new approach based on 20 years of experience in ROOT cint and it's quite stable and recommended by Cern guys.

Here is nice Google Talk: Introducing cling, a C++ Interpreter Based on clang/LLVM.

like image 176
Grzegorz Wierzowiecki Avatar answered Sep 29 '22 00:09

Grzegorz Wierzowiecki