Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Clvqp-0005Xx-N0 for qemu-devel@nongnu.org; Tue, 04 Jan 2005 16:04:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Clvqo-0005XY-Uo for qemu-devel@nongnu.org; Tue, 04 Jan 2005 16:04:23 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Clvqo-0005XV-Sf for qemu-devel@nongnu.org; Tue, 04 Jan 2005 16:04:22 -0500 Received: from [216.170.248.235] (helo=vfemail.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1ClvQg-0006Kr-Iz for qemu-devel@nongnu.org; Tue, 04 Jan 2005 15:37:22 -0500 Mime-Version: 1.0 Message-Id: In-Reply-To: <200501042016.03910.paul@codesourcery.com> References: <200501042016.03910.paul@codesourcery.com> Date: Tue, 4 Jan 2005 12:37:15 -0800 From: anarkhos@vfemail.net Subject: Re: [Qemu-devel] Endian and userspace issues Content-Type: text/plain; charset="us-ascii" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook , qemu-devel@nongnu.org > >However shared libraries tend to have much less cleanly defined interfaces. >They tend do share data structures, and be much more closely linked. This >makes adding the translation layer between the two much more difficult, if >not impossible. It generally requires designing the interface with this in >mind from the start, and in general can't be retrofitted to existing >libraries. Shared libraries (aka dlls) share an address space with the main >application, so tend to be very hard to disentangle from each other. > >Paul I can see your point in that if a non-native app passed an address to a space of little endian memory to a native DLL which required big-endian memory...but my suggestion was that everything would be native-endian after one initial translation. PS: WINE can insert thunk layers between the app and DLLs or between the DLLs. It currently does this for debugging purposes (printing arguments and return values), but could it not convert these values before passing them on?