Xref: news-dnh.mv.net comp.os.msdos.djgpp:3777 Path: news-dnh.mv.net!mv!news.sprintlink.net!cs.utexas.edu!academ!bcm.tmc.edu!news.msfc.nasa.gov!elroy.jpl.nasa.gov!decwrl!genmagic!goonsquad.spies.com!uuwest!alcyone!max From: max AT alcyone DOT darkside DOT com (Erik Max Francis) Newsgroups: comp.os.msdos.djgpp Subject: Re: Overlaying Date: Mon, 11 Dec 95 07:42:51 PST References: Organization: &tSftDotIotE Lines: 24 To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp "A.Appleyard" writes: > 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 the portion of the initialization code _really_ large enough to warrant such measures? Are you sure you're stripping the COFF of symbols before converting it to an EXE? (link with -s or run coff2exe on the COFF)? Erik Max Francis, &tSftDotIotE && uuwest!alcyone!max, max AT alcyone DOT darkside DOT com San Jose, California, U.S.A. && 37 20 07 N 121 53 38 W && the 4th R is respect H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- && 1love && folasade _Omnia quia sunt, lumina sunt._ && GIGO Omega Psi && http://www.spies.com/max/ "The Creator Raven looked at Man and was . . . surprised to find that this strange new being was so much like himself." -- Eskimo creation myth