emacs and large-address awareness under recent snapshots

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Aug 11 07:43:00 GMT 2011


On Aug 10 11:58, Eliot Moss wrote:
> 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...

Never, please.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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