Re: How many bytes is an instruction?
Re: How many bytes is an instruction?
- Subject: Re: How many bytes is an instruction?
- From: Wim Lewis <email@hidden>
- Date: Wed, 24 Jul 2013 13:48:26 -0700
On 24 Jul 2013, at 1:37 PM, Rick Mann wrote:
> On Jul 24, 2013, at 13:32 , Ken Thomases <email@hidden> wrote:
>> No. Instructions take variable numbers of bytes. Any disassembly should either list the address or the offset (in hex, probably) of each instruction. So, you find the -myMethod: address, add the offset, and then find the line with that address.
>
> Unfortunately, it does not. Here's a snippet.
That looks like compiler output, not disassembly --- it hasn't been relocated to a particular place (and link-time relaxation might even change its size, I don't know if OSX's linker does that).
You can disassemble in gdb/lldb or using otool.
I'd suggest using the 'atos' utility as a first try, though, especially if you have the dSYM bundle for that exact build available.
_______________________________________________
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