[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: pointers and Windows debugging

From: Zack Weinberg <zack_at_codesourcery.com>
Date: 2003-01-07 09:03:28 CET

Daniel Berlin <dberlin@dberlin.org> writes:
>
> Okay, i hate to point it out, because i figured someone would already,
> but it *does* affect unix more than windows. At least, if you are
> talking about linux.
> On Linux , uninitialized data is placed in the .bss section.
> You are *guaranteed* that uninitialized data will be 0 (if it is put
> in the .bss section) on linux.
...

Uninitialized global variables being cleared to zero (if scalar) or
NULL (if pointers) is a requirement of the C standard. I am quite
certain that all extant implementations of Unix comply with this
requirement and I doubt that Windows is so broken that it doesn't.

Uninitialized *stack* (auto) variables have undefined values, but this
is also universally the case.

<peeve> Linux is an implementation of Unix. It is incorrect to speak
of them as if they were two entirely different things. </peeve>

zw

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jan 7 09:04:24 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.