【发布时间】:2021-07-22 11:30:10
【问题描述】:
我正在尝试从 arm-linux-gnueabihf gcc/g++ 编译器编写一个 xxx.toolchain.cmake。
让我困惑的是,我是否应该使用-flax-vector-conversions 编译标志。我阅读了编译器的文档/手册页,它告诉:
-flax-vector-conversions
Allow implicit conversions between vectors with differing numbers of elements and/or incompatible element types. This option should not be used for new code.
(通过https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html)
我的两个困惑:
-
这个解释中的“向量”是什么意思?有没有例子说明这一点?
-
“新代码”是什么意思?为什么“新代码”不应该与这个编译选项一起使用?
【问题讨论】:
-
顺便说一句,“f”前缀很容易被误读为“亚麻矢量转换”。
标签: c++ arm compiler-flags