Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What high level languages are easily interfaced with C / C++?

I have experience with OCaml. You had to write a stub for every function you wanted to use to convert the types even C int <-> OCaml int. Linking was painful a well. I don't even want to thing about mapping C++ objects.

What about other popular languages? Is it always a pain?

EDIT:

Please avoid duplicates. And state C and C++ interfacing capabilities separately.

EDIT 2:

Please be specific. "X can call C" doesn't give too much information.

like image 673
Łukasz Lew Avatar asked Aug 15 '09 13:08

Łukasz Lew


People also ask

What is high-level language in C?

A high-level language (HLL) is a programming language such as C, FORTRAN, or Pascal that enables a programmer to write programs that are more or less independent of a particular type of computer. Such languages are considered high-level because they are closer to human languages and further from machine languages.

What is interfacing with high-level language?

Interfacing With High level Language progaraming 9 Machine Independent:- The program written in High Level Language is machine independent. It means that a program written or compiled on one type of Computer can be executed (run) on another different type of Computer that has different architecture.

Is C C++ a high-level language?

C++ (pronounced "C plus plus") is a high-level general-purpose programming language created by Danish computer scientist Bjarne Stroustrup as an extension of the C programming language, or "C with Classes".

Is Linux written in C?

Linux. Linux is also written mostly in C, with some parts in assembly. About 97 percent of the world's 500 most powerful supercomputers run the Linux kernel. It is also used in many personal computers.


1 Answers

Python has a very good C API. It can be integrated to C++ also very easily and conveniently using the boost::python C++ binding for the Python C API.

like image 71
Sahas Avatar answered Oct 18 '22 13:10

Sahas