Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!cwruecmp!nitrex!rbl From: rbl@nitrex.UUCP Newsgroups: comp.os.minix Subject: Re: Stack growth Message-ID: <421@nitrex.UUCP> Date: Mon, 16-Feb-87 13:54:03 EST Article-I.D.: nitrex.421 Posted: Mon Feb 16 13:54:03 1987 Date-Received: Tue, 17-Feb-87 06:01:41 EST References: <966@ulowell.cs.ulowell.edu> <1565@cit-vax.Caltech.Edu> <1377@cbmvax.cbmvax.cbm.UUCP> <800@vaxb.calgary.UUCP> Reply-To: rbl@nitrex.UUCP ( Robin Lake ) Organization: The Standard Oil Co., Cleveland Lines: 20 Keywords: PDP-11, stack Summary: PDP-11 stack grows downward from initialzed Stack Pointer register In article <800@vaxb.calgary.UUCP> radford@calgary.UUCP (Radford Neal) writes: > >For example, on a stand-alone PDP 11, the stack grows down from the top of >memory, *wherever that may be*. The program is loaded into low memory, which >is always the same place. So you don't have to re-link all your programs >when you buy more memory. > > Radford Neal Sorry, but in a stand-alone PDP-11 (without operating system) the stack grows down from the address initialized in the Stack Pointer register. There is an interrupt generated whenever the stack pointer decrements below octal 400 (I believe that's the value). The programs are loaded above the address initialized in the Stack Pointer register. Typically (I guess by custom) this address is octal 1000. Rob Lake decvax!cwruecmp!nitrex!rbl cbatt!cwruecmp!nitrex!rbl