English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-03-05 (09:06)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] stl?
On Thu, Mar 05, 2009 at 07:22:28AM +0100, yoann padioleau wrote:
> Qemu is written in C, because I guess indeed C struct and union
> and bitfields makes it easy to match directly to the hardware (no marshalling,
> there is direct mapping).

I was hacking on qemu last week, and wishing it wasn't written in C.

There's not much of a technical reason why it couldn't have been
written in a higher level language.  Bitfield manipulation would be
more painful unless there was a bitstring-like preprocessor added.

The real reason to use C was to get wider development support.  Qemu
also happens to be security critical (all those hacked up C device
emulations offer exploit possibilities for the guests).  And it has
frequent vulnerabilities.  Go figure ...


Richard Jones
Red Hat