Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!ukc!dcl-cs!bath63!sc_dra From: sc_dra@bath63.ux63.bath.ac.uk (Dave Allum) Newsgroups: comp.sys.atari.st Subject: Re: Basepages in Megamax C Message-ID: <828@bath63.ux63.bath.ac.uk> Date: Thu, 5-Mar-87 04:56:55 EST Article-I.D.: bath63.828 Posted: Thu Mar 5 04:56:55 1987 Date-Received: Sun, 8-Mar-87 06:48:41 EST References: <8702280631.AA04672@ucbvax.Berkeley.EDU> Reply-To: sc_dra@ux63.bath.ac.uk (Dave Allum) Distribution: world Organization: SWURCC, University of Bath, UK Lines: 16 Summary: _base and be careful with Ptermres Megamax stores the basepage address in a variable called _base which is declared in the runtime startup routine (as char *_base). If you have the library source disk then the routine to look at is init.c. If you are going to call Ptermres remember that the runtime code will already have returned unused memory to TOS during startup and to add the stack size in use to the program size given on the Ptermres call. The stack size reserved is normally 8K and, I think, 2K if you link in the desk accessory library. ~ ---------------------------------------------------------- O^O Dave Allum, SWURCC, University of Bath, BATH BA2 7AY, U.K. V / \ USENET ..!mcvax!ukc!bath63!sc_dra ISD +44 225 60371 /\_/\ JANET dave@uk.ac.swurcc.gecdv STD 0225 60371 _| |_ __________________________________________________________