emacs and large-address awareness under recent snapshots

Eliot Moss moss@cs.umass.edu
Wed Aug 10 15:59:00 GMT 2011


On 8/10/2011 11:28 AM, Ken Brown wrote:

> Would it be possible to accomplish the same goal without using bss_sbrk and the static heap? In
> other words, can one save the information on the Cygwin heap as part of emacs.exe, so that when
> emacs is run the heap gets restored? I know virtually nothing about the structure of .exe files and
> how the loader works, so I have no idea whether that's feasible.

I would think so.  The trick is knowing what pages contain
the Cygwin heap.  As for the other approach, these need to
get dumped as initialized data segments.  It might not be
too hard if the Cygwin heap provides functions telling you
where it starts and ends (more generally, the ranges of pages
in which it lies).

I begin to wonder, though, whether this would mean having
to provide two different copies of emacs, one with the
heap at 0x2... and one with it at 0x8...

Best wishes -- Eliot Moss

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list