delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
Message-ID: | <41165847.5227F717@yahoo.com> |
From: | CBFalconer <cbfalconer AT yahoo DOT com> |
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: | <E94D7E69-E940-11D8-9F0B-003065C18A1C AT gmx DOT ch> |
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. <http://cbfalconer.home.att.net> USE worldnet address!
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |