X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <41165847.5227F717@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Sequence of Symbol Allocation References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Lines: 21 Date: Sun, 08 Aug 2004 21:41:10 GMT NNTP-Posting-Host: 12.76.140.18 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1092001270 12.76.140.18 (Sun, 08 Aug 2004 21:41:10 GMT) NNTP-Posting-Date: Sun, 08 Aug 2004 21:41:10 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Werner Schönenberger wrote: > ... snip about zeroing ... > > Until now, I did not find a solution how the sequence of > allocation can be forced to be the same as in the source code. > If anybody has some ideas, please let me know. Any help is > appreciated. Wrong question. In C, anything allocated in static storage, such as items defined outside of any function, are automatically set to all-bytes-zero at startup. This may not be what you want, since, for example, NULL is not necessarily all-bytes-zero, nor is a floating point zero. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net) Available for consulting/temporary embedded and systems. USE worldnet address!