delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-Injected-Via-Gmane: | http://gmane.org/ |
To: | cygwin AT cygwin DOT com |
From: | Joe Buehler <jbuehler AT hekimian DOT com> |
Subject: | Re: trying to compile emacs under cygwin |
Date: | Fri, 28 Mar 2003 09:23:06 -0500 |
Organization: | Spirent Communications, Inc. |
Lines: | 40 |
Message-ID: | <3E845ACA.7070302@hekimian.com> |
References: | <3E81DEFC DOT 8080603 AT hekimian DOT com> <16003 DOT 31199 DOT 26941 DOT 271222 AT gargle DOT gargle DOT HOWL> |
Reply-To: | jbuehler AT hekimian DOT com |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT main DOT gmane DOT org |
User-Agent: | Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3) Gecko/20030312 |
X-Accept-Language: | en-us, en |
In-Reply-To: | <16003.31199.26941.271222@gargle.gargle.HOWL> |
X-Enigmail-Version: | 0.73.1.0 |
X-Enigmail-Supports: | pgp-inline, pgp-mime |
Robert Mecklenburg wrote: > Static heap usage: 2129280 of 10648960, slop is 65536 -- 8320k wasted -- reset to 2194816k > emacs: SHEAP_ADJUSTMENT needs to be modified to reduce memory waste! You increased the heap size, but it's outside the fuzz range -- you are over it by about 8 MB. Emacs would run, but the problem is that the binary would be a lot larger than it needs to be. Under Cygwin, this is an issue because of the way that fork() works. So what you have to do is increase SHEAP_ADJUSTMENT by enough that you end up in the comparison fuzz range. > actually writes sheap.c, so I edit the script to change the -620000 > to: > > +#ifdef HAVE_X_WINDOWS > +#define SHEAP_ADJUSTMENT 2194816 /* XEmacs does this dynamically */ > +#else > +#define SHEAP_ADJUSTMENT 2194816 /* XEmacs does this dynamically */ > +#endif That's the correct thing to do. Edit the build script -- it patches the original emacs source for Cygwin. What you want to do is look at the message you get after you compile: Static heap usage: 2129280 of 10648960, slop is 65536 -- 8320k wasted -- reset to 2194816k And figure out what to set SHEAP_ADJUSTMENT to based on how the first two numbers compare. The message says that you used 2129280 bytes out of 10648960 available, so decrease SHEAP_ADJUSTMENT by (10648960 - 2129280). SHEAP_ADJUSTMENT will be some negative number because the base heap size is 8 MB, and emacs doesn't need anywhere near that. If it helps any, this piece of code hurts my head also -- I have no idea why it is set up to be so complicated. But it works! -- Joe Buehler -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |