• 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: variable question?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: variable question?


  • Subject: Re: variable question?
  • From: Michael de Haan <email@hidden>
  • Date: Sun, 30 Jan 2005 12:44:53 -0800

tks to those who replied



On Jan 30, 2005, at 11:28 AM, Gwynne wrote:

On Jan 30, 2005, at 2:16 PM, Michael de Haan wrote:
int main (){

int c=7, foo=8, d=7,e;
    return 0;
}


I know this is a dumb question, but I'll ask it anyhow.


The reason I am unable to view "e" in the debugger is because it has only been declared and not initialized?
Or is there a setting I am missing.
Tks in advance

The variable is completely unused, so the compiler optimizes it out altogether. As far as the object code is concerned, there's not even a memory location associated with e. A high-optimization build should remove the other variables too, since the initializers are constant and they aren't referenced.


-- Gwynne, key to the Code
Email: email@hidden
Website: http://musicimage.plasticchicken.com/
"This whole world is an asylum for the incurable."
 _______________________________________________
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

_______________________________________________ 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: 
 >variable question? (From: Michael de Haan <email@hidden>)
 >Re: variable question? (From: Gwynne <email@hidden>)

  • Prev by Date: Re: Rez not working
  • Next by Date: Re: Rez not working
  • Previous by thread: Re: variable question?
  • Next by thread: Re: variable question?
  • Index(es):
    • Date
    • Thread