Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!rochester!ur-helheim!dave From: dave@ur-helheim.UUCP (Sinse Raver Dave) Newsgroups: net.lang.c Subject: Stack frames Message-ID: <463@ur-helheim.UUCP> Date: Wed, 12-Feb-86 12:59:25 EST Article-I.D.: ur-helhe.463 Posted: Wed Feb 12 12:59:25 1986 Date-Received: Fri, 14-Feb-86 06:32:25 EST Reply-To: dave@ur-helheim.UUCP (Raver Dave) Organization: U. of Rochester, EE Dept. Lines: 24 In c one can declare variables within any {} block. Does a {} pair *imply* new context, with stack frame shifts, etc. I would have to assume so if local variables are declared within the {} but if no variables are declared? ... The reason for asking is for ease of expansion and consistancy of formatting I often put {} blocks where they are not necessary (clauses that are only one statement). Am I paying a penalty for these one-statement clauses or will my trusted compiler note the context has not changed and inhibit the subsequent costly stack manipulations? Mail or to the net any helpful ganders. (Not male geese.) dave -- "The Faster I Go the Behinder I Get" --Lewis Carroll Dave Carlson {allegra,seismo,decvax}!rochester!ur-valhalla!dave