From owner-freebsd-hackers Sat Sep 28 12:23:33 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA10773 for hackers-outgoing; Sat, 28 Sep 1996 12:23:33 -0700 (PDT) Received: from gvr.win.tue.nl (root@gvr.win.tue.nl [131.155.210.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id MAA10710; Sat, 28 Sep 1996 12:23:27 -0700 (PDT) Received: by gvr.win.tue.nl (8.6.13/1.53) id VAA06461; Sat, 28 Sep 1996 21:23:11 +0200 From: guido@gvr.win.tue.nl (Guido van Rooij) Message-Id: <199609281923.VAA06461@gvr.win.tue.nl> Subject: Re: stack To: dg@root.com Date: Sat, 28 Sep 1996 21:23:11 +0200 (MET DST) Cc: dyson@FreeBSD.org, FreeBSD-hackers@FreeBSD.org In-Reply-To: <199609281607.JAA02238@root.com> from David Greenman at "Sep 28, 96 09:07:58 am" X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk David Greenman wrote: > > Huh? Not that I'm aware of. I think you might be confusing .bss allocated > space which is created as zero-filled. If you move your variable declaration > above to outside of main(), the space will be allocated from .bss and thus > will be zero-filled. Yep, indeed, I was confused with static stuff. -Guido