Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: block variables Message-ID: <6692@brl-smoke.ARPA> Date: Wed, 18-Nov-87 09:48:31 EST Article-I.D.: brl-smok.6692 Posted: Wed Nov 18 09:48:31 1987 Date-Received: Sat, 21-Nov-87 04:41:29 EST References: <189@dalcsug.UUCP> <102600020@datacube> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article <102600020@datacube> ftw@datacube.UUCP writes: >Space for "k" is alloctaed when the block under the "for" loop is entered, >and de-allocated on the way out, rather than being re-allocated for each >iteration of your loop. Actually, most reasonable compilers allocate enough space for the deepest contained block at entry to a function, then when execution enters the block, the preallocated space is simply used without having to perform any explicit allocation at that point.