Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site umcp-cs.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!harpo!seismo!rlgvax!cvl!umcp-cs!mark From: mark@umcp-cs.UUCP Newsgroups: net.unix-wizards Subject: Re: Switching run-time contexts Message-ID: <5086@umcp-cs.UUCP> Date: Fri, 10-Feb-84 21:40:05 EST Article-I.D.: umcp-cs.5086 Posted: Fri Feb 10 21:40:05 1984 Date-Received: Wed, 15-Feb-84 01:05:10 EST References: <16405@sri-arpa.UUCP> Organization: Univ. of Maryland, Computer Science Dept. Lines: 11 You can look at the code C itself uses to set up the environment it wants before calling the users "main" routine in /usr/src/libc/csu/crt.s (at least on our 4.1bsd system). 10 lines of assembler does it. Generally you won't have to do even this much--C carries around no assumptions about the environment it is in except that there be a stack. -- Mark Weiser UUCP: {seismo,allegra,brl-bmd}!umcp-cs!mark CSNet: mark@umcp-cs ARPA: mark@maryland