Arrays in inline asm broken?
Arrays in inline asm broken?
- Subject: Arrays in inline asm broken?
- From: email@hidden
- Date: Wed, 1 Feb 2006 13:37:42 -0500
I was some in line assembly code that
builds on the PC with Microsoft VC that I am porting to the Mac Intel platform
with xcode 2.2.1
The assembler code has an array of 4
values. Trying to access the array causes a compilier error on the
instruction following the one
accessing the array with the following
error:
"impossible constrain in asm"
Here is an example.
void simplyASMBug(void)
{
int
pJmpTable[4] = {0,0,0,0};
asm
{
push ebx
mov ebx, label2
mov [pJmpTable + 2], ebx
mov ecx, label3
<- this line failes to build
label2:
.
.
.
.
label3:
.
.
.
.
}
}
Any Ideas?
Thanks
Lou Sakey
DFIS WW S+SE LOWELL DEVELOPMENT CTR
email@hidden
KNET 27-67676
978-323-7676 _______________________________________________
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