Xcode4.5 assembler fails to compile files that Xcode4.4 handled perfectly

人盡茶涼 提交于 2019-12-03 07:16:11

Yes, Xcode 4.5 has made some changes that break compilation of ASM code. There fix is easy, just add the -no-integrated-as flag to the compilation options for the maxvid_decode_arm.s file in AVAnimator.

Like so:

Choose the project file in the left window that lists files (it is the one at the top with the blue icon).

Select your Target in the "TARGETS" list.

Select the "Build Phases" Tab.

Double click on maxvid_decode_arm.s, then add -no-integrated-as by pasting into the list that comes up.

The error is quite clear - two assembler instructions in max_vid_decode.s are not properly formatted:

strneh r8, [r10], #2
stmeqia r10!, {r0, r1}

Probably the assembler spec has tightened, and code that was slightly non-compliant worked previously. Find the armv7 assembler document and read up on these two commands, and make them compliant.

yeahdixon

Found this in Workflow for writing ARM assembly code on the iphone. Actually I think i'ts the developer who answered it

add -no-integrated-as in your compiler flags in buildphases.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!