Commit 0405f8d9 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.

parent 4fa4a838
2009-10-30 Eli Zaretskii <eliz@gnu.org>
* s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure
space.
2009-10-30 Dan Nicolaescu <dann@ics.uci.edu> 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
   
* puresize.h (BASE_PURESIZE): Increase to 1470000. * puresize.h (BASE_PURESIZE): Increase to 1470000.
......
...@@ -193,14 +193,22 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ ...@@ -193,14 +193,22 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
/* Define one of these for easier conditionals. */ /* Define one of these for easier conditionals. */
#ifdef HAVE_X_WINDOWS #ifdef HAVE_X_WINDOWS
/* We need a little extra space, see ../../lisp/loadup.el. */ /* We need a little extra space, see ../../lisp/loadup.el and the
#define SYSTEM_PURESIZE_EXTRA 15000 commentary below, in the non-X branch. The 140KB number was
measured on GNU/Linux and on MS-WIndows. */
#define SYSTEM_PURESIZE_EXTRA (-170000+140000)
#define LIBX11_SYSTEM -lxext -lsys #define LIBX11_SYSTEM -lxext -lsys
#else #else
/* We may need a little extra space, see ../../lisp/loadup.el. As of /* We need a little extra space, see ../../lisp/loadup.el.
20081010, 1193600 bytes are used at dump time, which is even less As of 20091024, DOS-specific files use up 62KB of pure space. But
than BASE_PURESIZE. So the extra below is just paranoia. */ overall, we end up wasting 130KB of pure space, because
#define SYSTEM_PURESIZE_EXTRA 10000 BASE_PURESIZE starts at 1.47MB, while we need only 1.3MB (including
non-DOS specific files and load history; the latter is about 55K,
but depends on the depth of the top-level Emacs directory in the
directory tree). Given the unknown policy of different DPMI
hosts regarding loading of untouched pages, I'm not going to risk
enlarging Emacs footprint by another 100+ KBytes. */
#define SYSTEM_PURESIZE_EXTRA (-170000+65000)
#endif #endif
/* Tell the garbage collector that setjmp is known to save all /* Tell the garbage collector that setjmp is known to save all
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment