aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2009-10-30 10:55:20 +0000
committerEli Zaretskii2009-10-30 10:55:20 +0000
commit0405f8d9a302bf48308365467042e9d4f623b692 (patch)
tree83c3e5bfca7139f07e1733f97213d85f86d87743
parent4fa4a83839146d2cacdfb08f202adca928029889 (diff)
downloademacs-0405f8d9a302bf48308365467042e9d4f623b692.tar.gz
emacs-0405f8d9a302bf48308365467042e9d4f623b692.zip
(SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/s/msdos.h20
2 files changed, 19 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 44cc92450c4..a291d8c1e9c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12009-10-30 Eli Zaretskii <eliz@gnu.org>
2
3 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure
4 space.
5
12009-10-30 Dan Nicolaescu <dann@ics.uci.edu> 62009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2 7
3 * puresize.h (BASE_PURESIZE): Increase to 1470000. 8 * puresize.h (BASE_PURESIZE): Increase to 1470000.
diff --git a/src/s/msdos.h b/src/s/msdos.h
index b9d53c85aa9..5ef414c6c18 100644
--- a/src/s/msdos.h
+++ b/src/s/msdos.h
@@ -193,14 +193,22 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
193 193
194/* Define one of these for easier conditionals. */ 194/* Define one of these for easier conditionals. */
195#ifdef HAVE_X_WINDOWS 195#ifdef HAVE_X_WINDOWS
196/* We need a little extra space, see ../../lisp/loadup.el. */ 196/* We need a little extra space, see ../../lisp/loadup.el and the
197#define SYSTEM_PURESIZE_EXTRA 15000 197 commentary below, in the non-X branch. The 140KB number was
198 measured on GNU/Linux and on MS-WIndows. */
199#define SYSTEM_PURESIZE_EXTRA (-170000+140000)
198#define LIBX11_SYSTEM -lxext -lsys 200#define LIBX11_SYSTEM -lxext -lsys
199#else 201#else
200/* We may need a little extra space, see ../../lisp/loadup.el. As of 202/* We need a little extra space, see ../../lisp/loadup.el.
201 20081010, 1193600 bytes are used at dump time, which is even less 203 As of 20091024, DOS-specific files use up 62KB of pure space. But
202 than BASE_PURESIZE. So the extra below is just paranoia. */ 204 overall, we end up wasting 130KB of pure space, because
203#define SYSTEM_PURESIZE_EXTRA 10000 205 BASE_PURESIZE starts at 1.47MB, while we need only 1.3MB (including
206 non-DOS specific files and load history; the latter is about 55K,
207 but depends on the depth of the top-level Emacs directory in the
208 directory tree). Given the unknown policy of different DPMI
209 hosts regarding loading of untouched pages, I'm not going to risk
210 enlarging Emacs footprint by another 100+ KBytes. */
211#define SYSTEM_PURESIZE_EXTRA (-170000+65000)
204#endif 212#endif
205 213
206/* Tell the garbage collector that setjmp is known to save all 214/* Tell the garbage collector that setjmp is known to save all