• Re: gcc complains about "no DPMI memory"

    From [via djgpp@delorie.com]" @21:1/5 to All on Sun Jan 28 19:11:34 2024
    From: "A. Wik (awik32@gmail.com) [via djgpp@delorie.com]" <djgpp@delorie.com> Date: Sun, 28 Jan 2024 17:05:17 +0000

    On Sun, 28 Jan 2024 at 16:27, Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com] <djgpp@delorie.com> wrote:


    I increased the DPMI and XMS memory in the COMMAND .PIF file to 32768
    KB, and now I don't get the error message

    C:\proj\debug\tmp>gcc linecont.c
    [no error message]

    But the compiler fails to produce any output files:

    What does go32-v2 report _after_ you increased the memory?

    C:\proj\debug\tmp>go32-v2
    go32/v2 version 2.0 built Oct 18 2015 09:41:08
    ...
    DPMI memory available: 32209 Kb
    DPMI swap space available: 0 Kb

    Try enlarging it more, I'm not sure 32MB is enough for GCC 9. Don't
    forget that gcc.exe is just a driver: it invokes cc1.exe (the
    compiler), then the assembler, and then the linker. Each one of those
    also needs memory. And GNU tools are designed and implemented
    explicitly to require vast amounts of memory.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [via djgpp@delorie.com]" @21:1/5 to All on Sun Jan 28 21:28:52 2024
    From: "A. Wik (awik32@gmail.com) [via djgpp@delorie.com]" <djgpp@delorie.com> Date: Sun, 28 Jan 2024 19:21:05 +0000

    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

    Yes, MUCH better.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)