This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

请问aarch64-linux-android-clang++支持neon 指令集吗?

您好:

 请问aarch64-linux-android-clang++编译器支持neon指令集吗?现在我有个图像视差算法使用neon 指令集写的,如果aarch64-linux-android-clang++支持 neon,请问该加什么参数?

 我用同样的代码 在aarch64-linux-android-gcc下编译时通过的,aarch64-linux-android-clang++编译器不通过编译错误如下:

aarch64-linux-android-clang++   ./cost_accumulation.s ./case_cost_accumulation.c  -o case_cost_accumulation
clang50++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
/tmp/case_cost_accumulation-23c6f2.o: In function `main':
./case_cost_accumulation.c:(.text+0x334): undefined reference to `asm_cost_accumulation(unsigned long, unsigned long, unsigned short*, unsigned short*, unsigned short*, unsigned short*, unsigned short*, unsigned short*)'
clang50++: error: linker command failed with exit code 1 (use -v to see invocation)

怀疑是aarch64-linux-android-clang++不支持neon,造成汇编函数没有编译,找不到该函数