• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Arrays in inline asm broken?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Arrays in inline asm broken?
      • From: Eric Albert <email@hidden>
  • Prev by Date: Re: Class Model behaves strangely
  • Next by Date: Linking Problem with 10.3.9 sdk
  • Previous by thread: Re: Class Model behaves strangely
  • Next by thread: Re: Arrays in inline asm broken?
  • Index(es):
    • Date
    • Thread