Topic: C++ called from C (or other languages)
Author: jr@hpgnd.grenoble.hp.com (Jean-Ren BOUVIER)
Date: 20 Aug 91 09:09:14 GMT Raw View
Subject: C++ called from C
-------
The ARM states that there should be a "main" function in a C++ program.
This seems to explicitely forbid calling C++ code from C (or other
languages). I understand that there are some runtime settings that the
compiler needs to put in a C++ program, but couldn't the standard
provide a way (ways) to write code callable from other languages.
Right now, if I want to write code for the Unix kernel, I won't be able
to write in C++. This restriction is a barrier for C++ acceptance in
the system programmers community.
To solve that issue, the standard C++ library could include functions
that allow for running code without a main. As I don't know what a C++
main typically does (although I can guess), I can't propose suitable
function headers.
If the above has already been discussed in notes, could someone send me
the relevant messages at jr@hpentc.grenoble.hp.com ?
- jr.