[Solved] assembler function labeling problem
[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