Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Arrays in inline asm broken?




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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.