use*_*892 4 assembly xcode arm
当我在 xcode 中编译程序集 'xx.s' 并且在 xx.s 中出现一些错误“错误:'.section' 指令 .section .text 中的意外标记”时,代码如下:
.section .text
.global PreMDCT
PreMDCT:
stmdb sp!, {r4 - r11, lr}
add r9, r0, r1, lsl #2
sub r3, r9, #32
movs r1, r1, asr #2
beq PreMDCT_END
.end
Run Code Online (Sandbox Code Playgroud)
谢谢
虽然这是有效的 gcc / as code,但它可能不是有效的 xcode 语法。
在Xcode中devoloper手册建议的.text是它自己的指令,它是第一个隐含的指令。因此它可以简单地与
.text
.global asdf
asdf:
nop
ret
.end
Run Code Online (Sandbox Code Playgroud)
甚至没有第一个指令。
归档时间: |
|
查看次数: |
4305 次 |
最近记录: |