Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-unix!hplabs!cae780!leadsv!esl!mac From: mac@esl.UUCP (Mike McNamara) Newsgroups: comp.lang.c,comp.unix.wizards Subject: Re: who called a C routine - get it from the stack frame Message-ID: <362@esl.UUCP> Date: Sat, 6-Dec-86 15:01:58 EST Article-I.D.: esl.362 Posted: Sat Dec 6 15:01:58 1986 Date-Received: Sun, 7-Dec-86 20:42:13 EST References: <810@hropus.UUCP> <961@cuuxb.UUCP> <5428@brl-smoke.ARPA> Reply-To: mac@esl.UUCP (Mike McNamara) Distribution: comp Organization: ESL, Inc., Sunnyvale, CA. Lines: 22 Xref: mnetor comp.lang.c:289 comp.unix.wizards:279 In article <5428@brl-smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: >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. Actually, the _important_ reference is, as Chris Torek pointed out, /usr/include/machine/frame.h, or equivilent. This tells you what your machine does. = = = = -- Michael Mc Namara ESL Incorporated ARPA: mac%esl@lll-lcc.ARPA