X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 10.99.105.72 with SMTP id e69mr4320929pgc.225.1502999381710; Thu, 17 Aug 2017 12:49:41 -0700 (PDT) X-Received: by 10.31.154.20 with SMTP id c20mr54628vke.5.1502999381636; Thu, 17 Aug 2017 12:49:41 -0700 (PDT) Newsgroups: comp.os.msdos.djgpp Date: Thu, 17 Aug 2017 12:49:41 -0700 (PDT) In-Reply-To: <66694c0e-7f93-494b-a566-29cedaebf471@googlegroups.com> Complaints-To: groups-abuse AT google DOT com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2602:306:8371:4220:54ad:57e9:c74a:a44; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO NNTP-Posting-Host: 2602:306:8371:4220:54ad:57e9:c74a:a44 References: <66694c0e-7f93-494b-a566-29cedaebf471 AT googlegroups DOT com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: cc1plus.exe: out of memory ... From: "rugxulo AT gmail DOT com [via djgpp AT delorie DOT com]" Injection-Date: Thu, 17 Aug 2017 19:49:41 +0000 Content-Type: text/plain; charset="UTF-8" Bytes: 3225 Lines: 69 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Hi, On Thursday, August 17, 2017 at 11:17:17 AM UTC-5, Gregg wrote: > > Sorry if this is a repeat, but my searching is not yielding answer. > > A very simple program compiles fine on Win7 using DJGPP GCC 4.73 > but not 7.2 (downloaded today using the zip picker). Haven't you already edited the registry to increase the DPMI limit? " Add registry entry 'DpmiLimit' with large enough value to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WOW " > Compile command from DOS prompt: gpp supersimple.cpp > > Error message when compiling with 7.2: > cc1plus.exe: out of memory allocating 2101247 bytes after a total > of 54213688 bytes I haven't checked in recent years, and this is barking up the wrong tree, but for some minimal relief (probably not under Win7, though!), you can use something like this: --param ggc-min-expand=10 --param ggc-min-heapsize=4096 -Wa,--reduce-memory-overheads -Wl,--reduce-memory-overheads > If the #include statement is commented out, the code compiles > without error for both versions. I doubt that's your problem. But instead you can use a Windows-native cross-compiler (currently only 7.1.0): https://github.com/andrewwutw/build-djgpp/releases > Based on internet suggestions, the following have been tried > without success. DJGPP still works under NTVDM (barely), but NTVDM isn't exactly well-supported anymore. Honestly, I don't even have any NTVDMs anymore, rarely boot DOSEMU, often boot native FreeDOS. > Assure file is saved as UTF-8 I don't think DJGPP builds support widechars. Pure ASCII is better! > -save-temps or -ftrack-macro-expansion=0 No idea. > unzip32 to prevent long file names Uh, I think that will use LFNs if available (which is good!). > What to do? You could use FreeDOS under VM: 1). http://wiki.freedos.org/install/ 2). https://www.lazybrowndog.net/freedos/virtualbox/ Or use a bootable USB: 3). http://rufus.akeo.ie/ > Thanks for any help. DJGPP is still awesome.