From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: DJGPP only dumps with USE_LISP_UNION_TYPE ?? Date: Wed, 10 Nov 2004 23:05:25 +0200 Message-ID: <01c4c769$Blat.v2.2.2$25653620@zahav.net.il> References: <01c4c514$Blat.v2.2.2$ca305740@zahav.net.il> <418EB423.9030601@swipnet.se> <01c4c56a$Blat.v2.2.2$96dd3060@zahav.net.il> <418FD9C3.7080507@swipnet.se> <01c4c619$Blat.v2.2.2$5f981160@zahav.net.il> <41909B12.2060404@swipnet.se> <01c4c6df$Blat.v2.2.2$ce9fc3c0@zahav.net.il> <442BAFFE-32F0-11D9-9DAE-000D93505B76@swipnet.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1100166298 10313 80.91.229.6 (11 Nov 2004 09:44:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Nov 2004 09:44:58 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 10 22:11:37 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CRzke-0002KH-00 for ; Wed, 10 Nov 2004 22:11:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CRzt6-0002Pn-Rn for ged-emacs-devel@m.gmane.org; Wed, 10 Nov 2004 16:20:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CRzsz-0002PU-75 for emacs-devel@gnu.org; Wed, 10 Nov 2004 16:20:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CRzsx-0002Ou-Vg for emacs-devel@gnu.org; Wed, 10 Nov 2004 16:20:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CRzsx-0002Or-Rx for emacs-devel@gnu.org; Wed, 10 Nov 2004 16:20:11 -0500 Original-Received: from [192.114.186.24] (helo=legolas.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CRzkI-00013f-7I for emacs-devel@gnu.org; Wed, 10 Nov 2004 16:11:14 -0500 Original-Received: from zaretski ([80.230.154.117]) by legolas.inter.net.il (MOS 3.5.5-GR) with ESMTP id DBR23389 (AUTH halo1); Wed, 10 Nov 2004 23:11:10 +0200 (IST) Original-To: "Jan D." X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: <442BAFFE-32F0-11D9-9DAE-000D93505B76@swipnet.se> (jan.h.d@swipnet.se) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:29732 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29732 > From: "Jan D." > Date: Wed, 10 Nov 2004 09:12:30 +0100 > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > > > The OS is also involved here, since the alignment of the program > > sections matters, and DPMI has its own ideas about that. > > Sounds like a comlicated setup It's not easy to produce a single executable that works on plain DOS, any version of Windows, and emulators such as DOSEmu from GNU/Linux. DPMI, the DOS Protected Mode Interface, is the API used by the DJGPP programs to run 32-bit protected-mode code on top of 16-bit OS, and still be able to invoke 16-bit real-mode system calls without crashing the OS. Unfortunately, DPMI doesn't give any control of memory allocation strategy or its alignment. I asked the other DJGPP developers for ideas of why this happens on XP and how to overcome it.