- To: gcc-help@xxxxxxxxxxx
- Subject: Re: Add assembly instruction to GCC
- From: Andrew Haley <aph@xxxxxxxxxx>
- Date: Fri, 13 Apr 2012 14:37:13 +0100
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- In-reply-to: <CAHOgucy3O8L=MFfP1kfm5VLAT=LovAa7qUMgeD4s6aurmXxMog@mail.gmail.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1
On 04/13/2012 02:24 PM, Amir Ghanbari wrote:
> The problem is that the binary being generated is not exactly what I
> want. when I simulate my code, I get an "invalid opcode" error and the
> address of the instruction is exactly where the disassembly get
> screwed up. So I believe that's what's happening. I need to make GCC
> treat that "F0 0F 23" as an instruction and put it in the binary
> intact and don't mix it with other instructions.
GCC has done that. It's here:
>>> f0 0f lock mov (bad),%db1"
>>> 23 48 89 and -0x77(%rax),%ecx"
This is your f0 0f 23, just as you asked.
Andrew.
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]