问题标签 [armclang]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c - Why does armclang not use VCVT instruction for efficient integer to float conversion?
I need to convert an integer value into a float value on a Cortex-M4 with FPU; for example:
armclang compiler translates this to:
(Godbolt Link: https://godbolt.org/z/K59xGq78W)
The conversion from int to float is made by calling the library routine __aeabi_i2f which is much less efficient than using the FPU instruction VCVT.
For example, the GCC makes use of VCVT:
(https://godbolt.org/z/Pdv3nEMYq)
Is there a way to tell armclang to use the VCVT instruction?
gcc - GCC 等效于 armclang --target=aarch64-arm-none-eabi 编译器选项
嗨,我正在尝试找出与 armclang 编译器选项 --target=aarch64-arm-none-eabi 等效的 GCC,它指示编译器生成 A64 指令?
armclang - __attribute__ 部分名称更改为特定地址
源代码示例使用
具有不同的部分名称__x__
。(“MB_MEM1”、“MB_MEM2”、“MAPPING_TABLE”、..)
必须将参数更改为特定地址而不是扇区名称:
通过执行以下操作寻找一种方法来保留原始扇区名称:
没有运气。
可能吗?
c - armcc 和 armclang 有什么区别?
armcc 和 armclang 是嵌入式 C 和 C++ 代码的编译器。最近,armclang 作为替代编译器越来越受欢迎。
armcc 和 armclang 有什么区别?使用 armclang 有优势吗?
keil - 我可以使用 Keil/armclang/armlink 在内存区域中放置一个变量吗?
我有一个由 Keil 生成的链接器分散文件,看起来像这样:
理想情况下,出于各种原因,我想继续使用 IDE 配置的分散文件。但是,我看不出有任何方法可以让 Keil 添加额外的链接器部分。
天真地,我以为我可以使用以下方法在 RW_IRAM2 区域中放置一个变量:
我也尝试过“.RW_IRAM2”和“.RW_IRAM2.bss”之类的东西,但是变量总是在 IRAM1 区域结束。查看文档后,如果不放弃分散文件,我看不到任何方法可以做到这一点由 Keil 配置/创建。我在这里遗漏了什么吗?
compiler-errors - __set_PRIMASK 是传统的 TI 内在函数,在 clang 编译器中不受支持
调用 __set_PRIMASK函数。它显示 __set_PRIMASK 是传统的 TI 内在函数,并且在 clang 编译器错误中不受支持。
如果使用 -Wno-ti-intrinsics 编译器选项关闭旧版 TI 内在函数。
它显示以下错误。
指令 __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory") 的操作数无效;
<inline asm>:1:6: 注意:这里实例化成程序集 MSR primask, r0
问题是什么?我是 arm clang 编译器的新手。
我想禁用所有中断。还有其他选择吗?
armclang - armclang 6.6.3 吃掉源文件名的随机字符
这是一个已知问题,我在哪里可以找到有关此的文档?
我使用 armclang 6.6.3 并且有一些问题,对于某些源文件,编译器似乎随机删除/忽略源文件路径的一个字符,导致找不到文件错误。并不总是在同一个位置,而是重复同一组受影响的文件。在本地它工作正常,但在 CI 从属设备上我们看到了这种行为。Windows 上的一切。
我很难找到有关此行为的信息和/或解决方案/解决方法。这是一个已知的错误?我已将 make 配置为输出调用编译器的命令,这仍然可以。所以我得出结论,错误必须在编译器中。