<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 15/04/2011 5:00 AM, <a class="moz-txt-link-abbreviated"
href="mailto:d.gnu-request@puremagic.com">d.gnu-request@puremagic.com</a>
wrote:
<blockquote cite="mid:mailman.5.1302807604.5414.d.gnu@puremagic.com"
type="cite">
<pre wrap="">Date: Wed, 13 Apr 2011 23:30:24 +0000 (UTC)
From: Iain Buclaw <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:ibuclaw@ubuntu.com"><ibuclaw@ubuntu.com></a>
== Quote from Brendan Simon (eTRIX) (<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:brendan.simon@etrix.com.au">brendan.simon@etrix.com.au</a>)'s article
</pre>
<blockquote type="cite" style="color: rgb(102, 102, 204);"><span
class="moz-txt-citetags">> >> > </span>Can D be
used in low-level drivers for Linux or other RTOS (e.g.
freertos)<br>
<blockquote type="cite" style="color: rgb(102, 102, 204);"><span
class="moz-txt-citetags">> > </span>D is not really
suitable for a freestanding environment. Especially if you
intend<span class="moz-txt-citetags"> </span>to use any
non-POD features of the language (C++ has the same problem
too).<br>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags"></span><span class="moz-txt-citetags">> </span>So is it possible to use D in a limited capacity for a bare-metal, or
<span class="moz-txt-citetags">> </span>low-level (rtos/kernel, driver) environment ??
</pre>
</blockquote>
<pre wrap="">Yes an no for the same reasons C++ is suitable for such a task.
It probably <b class="moz-txt-star"><span class="moz-txt-tag">*</span>could<span class="moz-txt-tag">*</span></b> be done (see the XOMB exo-kernel project), but requires you
implement a bespoke runtime, not use the one that comes bundled with DMD/GDC.
</pre>
</blockquote>
Had a quick look at XOmB and XOmB Bare Metal. It sounds very
interesting, but also very young. I don't even think they have a
filesystem or moderately complex C application working yet.<br>
<br>
I wonder how it performs compared to other C based OSes ?? Probably
hard to compare as it is not a traditional micro-kernel.<br>
<br>
I believe that eCos is written in C++ (or a restricted subset), and
I presume that it performs quite well, so given that, I see no
reason why a D based OS/RTOS could not perform as well as eCos or
other OSes.<br>
<br>
-- Brendan.<br>
</body>
</html>