www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/12/08/11:38:59

From: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019