Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c,comp.unix.wizards Subject: Re: who called a C routine - get it from the stack frame Message-ID: <5428@brl-smoke.ARPA> Date: Fri, 5-Dec-86 10:51:53 EST Article-I.D.: brl-smok.5428 Posted: Fri Dec 5 10:51:53 1986 Date-Received: Fri, 5-Dec-86 20:41:10 EST References: <810@hropus.UUCP> <961@cuuxb.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Distribution: comp Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 Xref: mnetor comp.lang.c:259 comp.unix.wizards:256 In article <961@cuuxb.UUCP> wbp@cuuxb.UUCP (Walt Pesch) writes: >... A generic System V stack frame look like: It is perhaps worth pointing out for people who aren't really into language technology that there is no such thing as a "generic" System V stack frame. Such details are necessarily implementation- specific. The classic reference for this is Bell Labs CSTR No. 102, "The C Language Calling Sequence" by S. C. Johnson and D. M. Ritchie.