• 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: Any tools for displaying a C/C++/Objective C call tree.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any tools for displaying a C/C++/Objective C call tree.


  • Subject: Re: Any tools for displaying a C/C++/Objective C call tree.
  • From: Bill Bumgarner <email@hidden>
  • Date: Mon, 14 Jan 2008 14:58:38 -0800

On Jan 14, 2008, at 1:57 PM, Todd Heberlein wrote:
creating an accurate static call tree for Objective-C code isn't possible in the general case

Well, in the general sense, this is true with C and C++ too when using pointers to functions.

That isn't entirely true and not just because the use of pointers-to- functions is comparatively rare to the invocation of methods within Objective-C.


With a pointer to a function, there is a well known location that is passed around and, thus, it is fairly easy to -- at the least -- identify points where the analysis breaks down and, in some case, to actually analyze the code to the point of following where the call into said pointer function may happen.

With Objective-C, this is not true. There is no well defined symbol at any given call site; the combination of target + selector are both required to fully follow the flow of execution. The target -- the class of the target more precisely -- can't be specifically known at compile time.

b.bum

_______________________________________________
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: Any tools for displaying a C/C++/Objective C call tree.
      • From: Marshall Clow <email@hidden>
References: 
 >Any tools for displaying a C/C++/Objective C call tree. (From: Tommy Nordgren <email@hidden>)
 >Re: Any tools for displaying a C/C++/Objective C call tree. (From: Chris Hanson <email@hidden>)
 >Re: Any tools for displaying a C/C++/Objective C call tree. (From: Todd Heberlein <email@hidden>)

  • Prev by Date: Re: Java Docs in Xcode 2.5
  • Next by Date: Re: Any tools for displaying a C/C++/Objective C call tree.
  • Previous by thread: Re: Any tools for displaying a C/C++/Objective C call tree.
  • Next by thread: Re: Any tools for displaying a C/C++/Objective C call tree.
  • Index(es):
    • Date
    • Thread