Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ncsu.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!mcnc!ncsu!mauney From: mauney@ncsu.UUCP (Jon Mauney) Newsgroups: net.lang.c Subject: Re: Stack frames Message-ID: <3000@ncsu.UUCP> Date: Fri, 14-Feb-86 13:42:48 EST Article-I.D.: ncsu.3000 Posted: Fri Feb 14 13:42:48 1986 Date-Received: Sun, 16-Feb-86 05:02:53 EST References: <463@ur-helheim.UUCP> Organization: N.C. State University, Raleigh Lines: 13 > In c one can declare variables within any {} block. > ... > Am I paying a penalty for these one-statement clauses Block structure is static with respect to the enclosing procedure and can be taken care of by the compiler, with no run-time stack manipulations required. Any compiler that tries to be efficient should do this. Any compiler that has a run-time penalty for use of {} without local declarations should be shot. -- Jon Mauney, mcnc!ncsu!mauney North Carolina State University