Exceptions in C++
A month or so ago someone was asking about linking up o/s exceptions to the C++ exception throwing system. People might find this interesting: http://netlab.ru.is/exception/LinuxCXX.shtml Abstract: "We have implemented a complete kernel level run-time support for C++ in the Linux kernel. In particular our run-time support enables the full use of C++ exceptions in the Linux kernel, but notably also includes support for global constructors and destructors, and dynamic type checking." alan lenton -- http://www.ibgames.net/alan Registered Linux user #6822 http://counter.li.org Winding Down - Weekly Tech Newsletter - subscribe at http://www.ibgames.net/alan/winding/mailing.html
On Thursday, 28 October 2004 13.06, alan@ibgames.com wrote:
A month or so ago someone was asking about linking up o/s exceptions to the C++ exception throwing system. People might find this interesting:
http://netlab.ru.is/exception/LinuxCXX.shtml
Abstract: "We have implemented a complete kernel level run-time support for C++ in the Linux kernel. In particular our run-time support enables the full use of C++ exceptions in the Linux kernel, but notably also includes support for global constructors and destructors, and dynamic type checking."
Don't forget to also read http://kerneltrap.org/node/view/2067 the relevant quote being "Trust me - writing kernel code in C++ is a BLOODY STUPID IDEA."
On Thu, 28 Oct 2004 13:21:49 +0200 Anders Johansson <andjoh@rydsbo.net> wrote:
http://kerneltrap.org/node/view/2067
the relevant quote being "Trust me - writing kernel code in C++ is a BLOODY STUPID IDEA." Several years ago, we decided to use lint(1) on the Tru64 Unix kernel. It was a good idea that found many problems with the kernel code, and cuased me to have many arguments with some of the kernel people because I was the lint(1) maintainer. We also had a special mode to look for 32/64-bit issues specifically. At the same time there was a discussion to use C++. IMHO: it is not a BLOODY STUPID IDEA", but C++ is not yet at the point where it would be useful in a kernel. The real issue is that the C compilers are much more mature than the C++ compilers. A kernel needs to be very efficient. -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
participants (3)
-
alan@ibgames.com
-
Anders Johansson
-
Jerry Feldman