• 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
[Solved] assembler function labeling problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Solved] assembler function labeling problem


  • Subject: [Solved] assembler function labeling problem
  • From: John Richetta <email@hidden>
  • Date: Thu, 17 Sep 2009 23:46:26 -0700

I said:
The issue: I have a routine that does some work, call it Test1, and after the first few instructions, I've got a label, more code, more labels, etc. The problem arises because while Test1 is declared using .globl, and is correctly(?) understood to be the containing routine for the first few instructions, once I step to (or in Shark's case, sample) the instructions following the first local label inside what I know is the function, the tools think that we are somewhere else (in a different function?). This makes reading code, and accurately profiling my routine, rather hard.

<snip>

I also wondered if there might be a more appropriate kind of label to use inside a function (that indicates it is "more local," meaning interior to the function), but I have found no such entity.

OK, sorry, my bad: indeed, truly local labels must all start with capital "L" - a convention I had forgotten that seems to be commonly used by embedded assemblers. Prefixing all my labels with "L", however ugly, has solved the problem.


-jar
_______________________________________________
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: 
 >assembler function labeling problem (From: John Richetta <email@hidden>)

  • Prev by Date: Re: Macros in Info.plist for single-file tools
  • Next by Date: Re: Xcode 3.1.3 -- (not) stepping into
  • Previous by thread: assembler function labeling problem
  • Next by thread: debug on device does not work after upgrading to iphone sdk 3.1
  • Index(es):
    • Date
    • Thread