Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BLLsx-0003pv-Oz for qemu-devel@nongnu.org; Wed, 05 May 2004 08:52:27 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BLLU7-0007gs-Li for qemu-devel@nongnu.org; Wed, 05 May 2004 08:27:18 -0400 Received: from [62.236.252.195] (helo=sulkku.creanor.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1BLLJZ-0006Vl-DC for qemu-devel@nongnu.org; Wed, 05 May 2004 08:15:53 -0400 Date: Wed, 5 May 2004 15:15:50 +0300 Subject: Re: [Qemu-devel] Stuff. Message-ID: <20040505121550.GH1872@movial.fi> References: <1083706269.26125.1150.camel@imladris.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1083706269.26125.1150.camel@imladris.demon.co.uk> From: Timo Savola Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Woodhouse Cc: qemu-devel@nongnu.org > Has anyone considered the possibility of emulating libc, rather than > emulating system calls? That's what em86 used to do for emulating i386 > code on Alpha -- rather than letting it run a 'real' non-native libc and > then emulating only syscalls. I guess that wouldn't work very well with statically linked applications. Or when some other C library is used (uClibc). Also, since the library and application code share global variables, it would be next to impossible to know what data to convert to different byte order and when. > I appreciate that syscalls are a far more stable ABI to be emulating, > and there are far fewer structures to convert -- but wouldn't it be > faster to emulate the library itself? Especially if we can extend that > to emulate libX11 too :) I don't think the stability is so much of an issue than the size of the interface. Timo