Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Hans-Peter Diettrich Newsgroups: comp.compilers Subject: Re: another C-like language? was Compilers :) Date: Mon, 9 Jan 2023 04:48:37 +0100 Organization: Compilers Central Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <23-01-025@comp.compilers> References: <23-01-001@comp.compilers> <23-01-002@comp.compilers> <23-01-003@comp.compilers> <23-01-008@comp.compilers> <23-01-020@comp.compilers> <23-01-024@comp.compilers> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="22819"; mail-complaints-to="abuse@iecc.com" Keywords: C, optimize Posted-Date: 09 Jan 2023 11:39:31 EST X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com In-Reply-To: <23-01-024@comp.compilers> Xref: csiph.com comp.compilers:3293 On 1/8/23 8:21 PM, David Brown wrote: > In other words, it can combine all the variables declared in nested > scope and act as though they were all defined at the start of the > function. AFAIR nested scopes were introduced just to allow for space saving memory overlays. Regardless of whether a compiler really takes that optimization *option*. Of course problems can arise from malware assuming memory contents as left over from a previous block, as it's not required that the compiler initializes all local variables on block entry. DoDi