This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM2732:如何在 Windows CCS 或 Linux Makefile 中为 R5内核启用 NEON 指令集。

Guru**** 1831610 points
Other Parts Discussed in Thread: AM2732
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1386052/am2732-how-to-enable-the-neon-instruction-set-for-the-r5-core-in-windows-ccs-or-in-a-linux-makefile

器件型号:AM2732

工具与软件:

如何在 Windows CCS 或 Linux Makefile 中为 R5内核启用 NEON 指令集。

我尝试过以下操作

1:在 Linux 系统工具链没有 NEON 或 NEON

toby@toby:~/ti/ti-cgt-armllvm_3.2.2.LTS/bin$ ^C
toby@toby:~/ti/ti-cgt-armllvm_3.2.2.LTS/bin$ ./tiarmclang -dM -E 1.c  | grep NEON
toby@toby:~/ti/ti-cgt-armllvm_3.2.2.LTS/bin$ ./tiarmclang -dM -E 1.c  | grep neon
toby@toby:~/ti/ti-cgt-armllvm_3.2.2.LTS/bin$ 
toby@toby:~/ti/ti-cgt-armllvm_3.2.2.LTS/bin$ 

2:在 Linux 系统中、修改 makefile CFLAGS -mfpu=neon、但出现编译器错误  

CFLAGS_common := \
	-march=armv7r \
	-mcpu=cortex-r5 \
	-mfloat-abi=hard \
	-mfpu=neon \
	-mthumb \
	-Wall \
	-Werror \
	-g \
	-Wno-gnu-variable-sized-type-not-at-end \
	-Wno-unused-function \

tiarmclang: error: FPU neon not supported for subtarget
make: *** [makefile:172: main.obj] Error 1

3:在 Windows CCS 中,没有 NEON 项目

那么,如何在 AM2732开发环境中打开 NEON 呢? 谢谢您

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Hi Current、

    我认为 R5F 内核(ARMv7)不支持 NEON。 它由 A53内核(ARMv8)提供支持。 但是、R5F 内核不支持 FPU 进行浮点运算。

    此致、

    Ming