Re: C local auto-initialized? (persists)
Re: C local auto-initialized? (persists)
- Subject: Re: C local auto-initialized? (persists)
- From: Scott Ribe <email@hidden>
- Date: Thu, 20 Sep 2007 16:22:17 -0600
- Thread-topic: C local auto-initialized? (persists)
> - I can display the uninitialized sum in gdb, and it _isn't_ zero; I
> can even print the nonzero value via printf(). No VM-protected zero
> value. No initialize-on-read.
...
> - If the strangeness disappears in a Release-configuration build, it's
> not an OS artifact.
Remember that various runtime libraries are loaded and their init routines
called before your main is called. So the stack is not pristine when you
first see it.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden