• 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: Chris Espinosa <email@hidden>
  • Date: Sun, 30 Jan 2005 22:55:50 -0800

On Jan 30, 2005, at 8:15 PM, Markian Hlynka wrote:

On Jan 30, 2005, at 12:23, Chris Espinosa wrote:

On Jan 30, 2005, at 11:16 AM, Michael de Haan wrote:

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.

'e' doesn't exist.  Since it's never assigned nor used, the compiler hasn't even allocated space for it to be stored.  There's no information in your compiled code about where 'e' should be, so the debugger cannot show it.

shouldn't compiling with -g force e to exist?


No.  In fact the gcc man page says, pretty explicitly:


"GCC allows you to use -g with -O. The shortcuts taken by optimized code may occasionally produce surprising results: some variables you declared may not exist at all; flow of control may briefly move where you did not expect it; some statements may not be executed because they compute constant results or their values were already at hand; some statements may execute in different places because they were moved out of loops."


-g sets the type and level of debugging information, but doesn't force the compiler to do things it ordinarily wouldn't in code generation.


Chris
 _______________________________________________
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: Chris Espinosa <email@hidden>)
 >Re: variable question? (From: Markian Hlynka <email@hidden>)

  • Prev by Date: Re: FILE -> NEW CLASS (Placement of newly created subclass)
  • Next by Date: View mpeg2enc
  • Previous by thread: Re: variable question?
  • Next by thread: Re: variable question?
  • Index(es):
    • Date
    • Thread