delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | Rugxulo <rugxulo AT gmail DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Abort when compiling using COFF debug format (-gcoff) |
Date: | Thu, 26 Jan 2012 21:32:14 -0800 (PST) |
Organization: | http://groups.google.com |
Lines: | 33 |
Message-ID: | <46dab882-a2b2-4c03-addc-860c2b1d8558@k28g2000yqc.googlegroups.com> |
References: | <201201262112 DOT 52030 DOT juan DOT guerrero AT gmx DOT de> <5fb299ee-6e26-47d5-a7fd-d068e1160f53 AT k6g2000vbz DOT googlegroups DOT com> |
<201201270305 DOT q0R35CAZ016436 AT delorie DOT com> | |
NNTP-Posting-Host: | 65.13.115.246 |
Mime-Version: | 1.0 |
X-Trace: | posting.google.com 1327642420 18073 127.0.0.1 (27 Jan 2012 05:33:40 GMT) |
X-Complaints-To: | groups-abuse AT google DOT com |
NNTP-Posting-Date: | Fri, 27 Jan 2012 05:33:40 +0000 (UTC) |
Complaints-To: | groups-abuse AT google DOT com |
Injection-Info: | k28g2000yqc.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO |
User-Agent: | G2/1.0 |
X-Google-Web-Client: | true |
X-Google-Header-Order: | HNKUARELSC |
X-HTTP-UserAgent: | Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 |
(KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7,gzip(gfe) | |
Bytes: | 2799 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id q0R5j2MM004070 |
Reply-To: | djgpp AT delorie DOT com |
Hi, On Jan 26, 9:05 pm, DJ Delorie <d DOT DOT DOT AT delorie DOT com> wrote: > > > BTW how can I change stack size for DJGPP programs? What is the > > default value and is it constant for every program? > > There is a program called "stubedit" that comes with djgpp that allows > you to change a few key settings for a given application, including > the stack size. Right. You can also (IIRC) set the variable "_stklen" in your own program, and that will be used by default. Traditionally, I think "stubify" only gives like 512k to programs. But some programs these days (e.g. CC1 from GCC 4.6.2) have been set to use a larger default, e.g. 2048k (aka, 2 MB). > > What happen If I have less phisical RAM - will it use smaller stack > > until crash or write an error and don't run at all? > > Physical RAM is irrelevent - you get as much stack space as you asked > for, or the program won't run. If you don't have enough physical RAM, > virtual RAM is used instead. I think? CWS said that the stack was placed directly after the .bss (uninitialized) memory. Anyways, not to be too pedantic (as if I know anything!), but physical RAM isn't the same as DPMI reported. Also, not every DPMI host has virtual memory support, it's not always enabled (or allowed), and sometimes it doesn't get detected or work correctly. Yeah, computers are funny that way. But CWSDPMI really is (IMHO) one of the best, better than most.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |