• 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
sizeof float in Xcode debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sizeof float in Xcode debugger


  • Subject: sizeof float in Xcode debugger
  • From: Michael McLaughlin <email@hidden>
  • Date: Mon, 23 Jun 2008 11:37:44 -0400
  • Thread-topic: sizeof float in Xcode debugger

I am porting an old, legacy app (pure C) from CodeWarrior to an Xcode (PPC)
CoreServices app.  The code compiles in both cases but shows some
discrepancies.  In trying to track down the latter, I note that float
variables show up differently in the respective debuggers.

For instance, a float which, in memory, is

3F4D53D0

in both debuggers is rendered in the CodeWarrior debugger as

0.802060

but shows up in Xcode (GDB) as

0.802060127

Subsequent computations seem to indicate that this difference propagates
throughout the rest of the program.

I doubt that a float could really have nine sig. figs. as Xcode indicates
and wonder if some garbage might be getting included somehow.

Thoughts?  Hints as to where to look?

TIA.

--
Mike McLaughlin

 _______________________________________________
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

  • Follow-Ups:
    • Re: sizeof float in Xcode debugger
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: XCode 3.1 & Shark
  • Next by Date: Re: Smart group for "hot" files?
  • Previous by thread: Re: Terminal environment in instruments
  • Next by thread: Re: sizeof float in Xcode debugger
  • Index(es):
    • Date
    • Thread