delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2024/01/28/14:21:28

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1706469678; x=1707074478; darn=delorie.com;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=GzgfKmkO2FQm8P1CwIO+vsvDz0YpFRb+f3cgrAgW2wI=;
b=bPj/dBzUrXoOcPl7n4Iv5OdbfxDrEHCD5p2ce6JhCbm2ZX1Hq9jQV8iK3uKvOHe0wS
tds03VtSYRvY6zIfgsGnYVq8JUtiop/YyCCeqfSeLsZkWJD4ZKBTXXENvfGfj60Cxeaw
5SDP5xE8wfQxTYWhGY+yN0+YtnIijWHpBBezHwgryzw+tvAqduJq39q8Uaw31k22tI+n
uY1RUSGgqlCni4lvFYx/+J8QMHB8VyIFt+O5Tj58NdrUmolBEx5L8NblgBvMAX8aRpGh
zG7xumOvrwsOlFkwKoRPiq/7Q8BkUCA0brs5usTml+Tm408S2F9sC4yMLFeLWNYZo2w2
i9gQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1706469678; x=1707074478;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=GzgfKmkO2FQm8P1CwIO+vsvDz0YpFRb+f3cgrAgW2wI=;
b=Bia89v422PkQJgcfg0ckKKZ9+SgeGyAx40PYwbDTLMKC1YD1BIxlVC1gtBT53Ctjlo
hBkf2JXDB2k+ZdUJVkJgTqAAO3Bqld6AmG8AiUrRa0qZgyyUhUZmgflB45uhFlmj5GSc
DmvM1snw6em5eDiEMuO/s+erimYTBPvmATYji6j4iJZPf4F0KREjjfUm8bba117N+Plr
mjGNvqIsog7VuOsfWlf0Pi2eLeWkTpCGpNAJ5Mwi06Aj2qyzlyhB1U460ZR2udF+c5q9
lXcJ4coCmWDjFam71w9VyeU/ua+IMH1MESBstUjzZr52FEZQUnYdXLAIWjEieFVYwVtU
jSYQ==
X-Gm-Message-State: AOJu0YxW8nhY+dEcaFuK3Ukm0tMG4yEkyvO+MfJ2GXUZYUChdMyxxRjM
sFtSMMARuXLnkwy80mYlkPcFVkrT1903R11IOxcug/fH8ji9soGT+3wJEcmkVMbyzEwU8yow0f5
PPr4b3e2pTcusPcTP2ZBXINafud9Khrpl
X-Google-Smtp-Source: AGHT+IEHW6EFFVXdf95+eOLr8pI2DKo8OSWspM61A9ijnXonZ7qxfXW2VoOasPdaXBMsfexVyxF+TvZPEt+Zs9v1dus=
X-Received: by 2002:ac2:4899:0:b0:50e:50ac:2c84 with SMTP id
x25-20020ac24899000000b0050e50ac2c84mr2214789lfc.51.1706469676768; Sun, 28
Jan 2024 11:21:16 -0800 (PST)
MIME-Version: 1.0
References: <CALPW7mTrJNPWSFE+q-NdQ4k2KUYA6MuWfUrWX3Qh_C7QAgXA7g AT mail DOT gmail DOT com>
<864jex5sqy DOT fsf AT gnu DOT org> <CALPW7mT+jG2mf9-fs6QRJvvAao3t5otfKMrduUd_1cUFBtKSQQ AT mail DOT gmail DOT com>
<861qa15qnt DOT fsf AT gnu DOT org> <CALPW7mT5b1njTC9V=c4kdYPQWduRM2+kU7ukvn50n6Ria8-+cA AT mail DOT gmail DOT com>
<86zfwp4ak7 DOT fsf AT gnu DOT org>
In-Reply-To: <86zfwp4ak7.fsf@gnu.org>
From: "A. Wik (awik32 AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Date: Sun, 28 Jan 2024 19:21:05 +0000
Message-ID: <CALPW7mR5mhoPsN5sjM+AVDb-CMZEg8vC39m0e5V1+bMrhQfaXQ@mail.gmail.com>
Subject: Re: gcc complains about "no DPMI memory"
To: djgpp AT delorie DOT com
Reply-To: djgpp AT delorie DOT com

On Sun, 28 Jan 2024 at 17:45, Eli Zaretskii (eliz AT gnu DOT org) [via
djgpp AT delorie DOT com] <djgpp AT delorie DOT com> wrote:
>
> >
> > I set it to 65535 KB, the highest setting allowed, and now it works!
>
> Great, happy hacking.

Thanks.  Today's main insight is that Microsoft C 5.10 (copyright date
1988) is not really K&R (first ed.), but DeSmet PCC 1.2d (copyright
date 1993) is.  The former understands ANSI "1" "2" "3" string
concatenation, hexadecimal character codes '\x41", and C++ style //
comments.  The latter compiler supports none of these features.

Incidentally, a friend of mine was able to get in touch with the
copyright holders of DeSmet C, and received permission to opensource
it, so it is now available at:
http://www.desmet-c.com/

> > "Explicitly to require vast amounts of memory"?  Like an end in itself?
>
> Yes.  The idea was that if you take this as a design goal, the
> program's code will be very different from a typical Unix program
> (recall that Unix was originally a 16-bit OS), so there will be no
> danger someone will try to sue GNU for stealing commercial code of
> other systems.

I played around with 16-bit Unix not so long ago -- Xenix to be
specific.  I've also spent a number of hours browsing the source code
of 7th Edition research Unix, and I found it very elegant.

> > Why did I never have to change this setting before?
>
> I don't know.  Maybe you've run Windows 98 in a different VM?  Or
> maybe you used an older version of GCC/Binutils?

I figured it out.  I had created a "custom" version of the MS-DOS
prompt PIF, and I had set the DPMI memory explicitly.  I tried
starting "command" with the "Run..." option from the Start menu, and I
found that gcc would work just fine.  It turns out that it's best to
leave the DPMI memory setting as "Auto".  To illustrate:

C:\proj\debug>go32-v2
go32/v2 version 2.0 built Oct 18 2015 09:41:08
Usage: go32 coff-image [args]
...
DPMI memory available: 226725 Kb
DPMI swap space available: 31959 Kb

-Albert.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019