Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!mcsun!hp4nl!svin02!eba!ebh.eb.ele.tue.nl!wjw From: wjw@ebh.eb.ele.tue.nl (Willem Jan Withagen) Newsgroups: comp.sys.apollo Subject: Looking for detailed runtime info. Keywords: asm, stack space, data space. Message-ID: <1199@eba.eb.ele.tue.nl> Date: 30 May 91 15:32:56 GMT Sender: news@eb.ele.tue.nl (The News system) Reply-To: wjw@eb.ele.tue.nl Organization: Digital Systems, Eindhoven University of Technology, the Netherlands Lines: 23 I must admit that I haven't scanned the manuals yet. But I want to know the following. When executing a program all (local) variables are allocated in the data-segment the stack has a separate segment? Yes? How do I find the start and end point of these segments at runtime? This for PIC-code and absolute code. I could include two variables for the data-segment, and test the sp a program start to find the bottom, but I'd like something beter. Under sr9.7 I just used an empirical tested value, which has never proven me wrong on our DN{3,4}000. But now I got slapped in the face. :{ Thanx, Willem Jan -- Eindhoven University of Technology DomainName: wjw@eb.ele.tue.nl Digital Systems Group, Room EH 10.10 P.O. 513 Tel: +31-40-473401 5600 MB Eindhoven The Netherlands