【发布时间】:2017-05-17 16:36:17
【问题描述】:
我在单独的文件 csc_rotation.S 中编写了一个 ARM NEON 函数来进行色彩空间转换,并将纯汇编文件添加到 iOS 应用程序项目中进行测试,然后在 Xcode 上的 armv7 arch 下编译代码。
然后我得到了这些错误:
.text
csc_rotation.S:3:1: Cannot use dot operator on a type
ldr r4, [sp, #24] //Save width to r4
csc_rotation.S:20:1: Unknown type name 'ldr'
csc_rotation.S:20:15: Expected identifier
csc_rotation.S:20:19: Expected ';' after top level declarator
image_rotate_180D_neon(y_ptr, y_stride, x_ptr, x_stride, width, height);
i420_888.cpp:536:5: Use of undeclared identifier 'image_rotate_180D_neon'
LLVM 似乎无法编译 neon 汇编代码? 你能帮帮我吗?
【问题讨论】:
-
您根本不应该编译汇编代码。你应该组装它。谁能想到。
-
你执行了哪些命令来“编译”汇编代码?
标签: ios xcode assembly arm neon