• 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
.asm files vs. 4.4 Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

.asm files vs. 4.4 Xcode


  • Subject: .asm files vs. 4.4 Xcode
  • From: Owen Hartnett <email@hidden>
  • Date: Fri, 03 Aug 2012 16:19:14 -0400

Hi Gang:

I have been using XCode to compile the apple file lib1funcs.asm file.

I only need two functions from it. Switch8 and Switch16.  These are the errors I get when trying to compile it on 4.4 (no errors on 4.3.3):

/loomis/branches/PaperTitleBar/In2/Libraries/lib1funcs.asm:268:26: error: unexpected token in '.macro' directive
.macro do_it cond, suffix=""
                         ^
/loomis/branches/PaperTitleBar/In2/Libraries/lib1funcs.asm:269:6: error: unexpected '.endm' in file, no current macro definition
.endm
     ^
/var/folders/3c/6c2mgwg94kv2xnwf9p1v42jh0000gn/T/lib1funcs-Jq8epL.s:151:2: error: invalid instruction
 ldrccsb r0, [lr, r0]
 ^
/var/folders/3c/6c2mgwg94kv2xnwf9p1v42jh0000gn/T/lib1funcs-Jq8epL.s:152:2: error: invalid instruction
 ldrcssb r0, [lr, ip]
 ^
<instantiation>:8:1: error: invalid symbol redefinition
___$0:
^
/loomis/branches/PaperTitleBar/In2/Libraries/lib1funcs.asm:1451:2: note: while in macro instantiation
 FUNC_START switch16
 ^
/var/folders/3c/6c2mgwg94kv2xnwf9p1v42jh0000gn/T/lib1funcs-Jq8epL.s:163:2: error: invalid instruction
 ldrccsh r0, [r0, #1]
 ^
/var/folders/3c/6c2mgwg94kv2xnwf9p1v42jh0000gn/T/lib1funcs-Jq8epL.s:165:2: error: invalid instruction
 ldrcssh r0, [ip, #1]
 ^

It looks like changes to 1) the macro syntax, and 2) missing ldrccsb and ldrccsh instructions.  Nothing in Xcode release notes about assembler, assume it is now using a different compiler.  Tried switching the file type to both: Assembly and LLVL Assembly in the rightmost pane.  Looks like the default assembly language compiler has changed.  Any ideas on how to either 1) make this compile with the old compiler or 2) make changes to the lib1funcs.asm file to get it to compile with the existing compiler?

Thanks for any responses.

-Owen
 _______________________________________________
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: .asm files vs. 4.4 Xcode
      • From: Chris Lattner <email@hidden>
  • Prev by Date: Re: My 2 XCode 4.4 problems
  • Next by Date: The file “InfoPlist.strings” couldn’t be opened because there is no such file.
  • Previous by thread: Re: Xcode-users Digest, Vol 9, Issue 362
  • Next by thread: Re: .asm files vs. 4.4 Xcode
  • Index(es):
    • Date
    • Thread