From: "A.Appleyard" To: DJGPP AT sun DOT soe DOT clarkson DOT edu Date: Fri, 8 Dec 1995 14:17:29 GMT Subject: Overlaying In my emacs that I am writing in Gnu C++, there is a fair length of program text which is obeyed once on starting and not again. I can't call it as a child process, as if I did the child would need to know many subroutine entry addresses in the parent and to write to arrays in the parent. To save space, is there any way I can get a particular subroutine X() to be put right at the top end of the fully assembled program, so that after running it I can (how?) move the start-of-free-store pointer back down to release the space occupied by the code of X()? Is there a way to find the start and finish of the memory occupied by subroutine X()?, so I can cannibalize it for work space.