• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C local auto-initialized? (persists)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: C local auto-initialized? (persists) (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: C local auto-initialized? (persists)
  • Next by Date: Re: C local auto-initialized?
  • Previous by thread: Re: C local auto-initialized? (persists)
  • Next by thread: Re: C local auto-initialized?
  • Index(es):
    • Date
    • Thread