Intel syntax in Xcode 2.3
Intel syntax in Xcode 2.3
- Subject: Intel syntax in Xcode 2.3
- From: Brad Oliver <email@hidden>
- Date: Sat, 26 Aug 2006 19:31:31 -0700
I'm porting an app from Windows to Xcode, and I'm running into an odd
problem with inline asm that uses Intel syntax.
In brief, I've got a class with a method like so:
static inline unsigned long Class::method (unsigned long value1,
unsigned long value2)
{
__asm
{
< code deleted >
mov bl, byte ptr[value1]
< code deleted >
mov bl, byte ptr[value1 + 1]
< code deleted >
mov bl, byte ptr[value1 + 2]
< code deleted >
mov bl, byte ptr[value1 + 3]
< code deleted >
}
}
There are 4 lines with a mov bl, byte ptr[] combo, and on each of the
4 lines, Xcode spits out this warning:
"addressing mode too complex, will consume an extra register"
The code in question crashes at runtime, so I figure the warning is
fatal. However, I'm not exactly sure why it's giving me a warning or
what I can do about it. My hunch is that it has to do an extra
dereference to get value1, and I maybe can fix it by creating a local
var and using that instead. Is that close to the mark or is there a
better way?
-mdynamic-no-pic is enabled and this is in an unoptimized debug target.
--
Brad Oliver
email@hidden
_______________________________________________
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