• 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
Inline asm - Label redefintion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inline asm - Label redefintion


  • Subject: Inline asm - Label redefintion
  • From: Olivier Tristan <email@hidden>
  • Date: Fri, 08 Apr 2005 11:08:27 +0200

Hi Guys,

I have inside my project some inline assembly functions
With certain otpimization flags, thoses functions are inlined, and I got a label redefintion.


ex:

asm long foo() // this code do nothing and is only for example purpose
{
   loop:
      add r6, r5, r4
      bne- loop
      mr r3, r5
      blr
}

I have read that in that case that I should use gcc unnamed labels. (number and adding b or f to branch)

asm long foo()
{
   1:
      add r6, r5, r4
      bne- 1b
      mr r3, r5
      blr
}

The problem is the way unnamed labels are written in gcc could'nt be used with codewarriro inline assembly syntax because there is a syntax error with 1.

Does the redefintion is a gcc bug ?
If i's not, what is the way of writing unnamed labels with the codewarrior inline assembly syntax.


Thanks,

Regards

--
Olivier Tristan
Ultimate Sound Bank

_______________________________________________
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


  • Prev by Date: Re: Questions
  • Next by Date: Global Variables
  • Previous by thread: Re: Questions
  • Next by thread: Global Variables
  • Index(es):
    • Date
    • Thread