We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--specs=nano.specs
在c/c++编译器标志中指定--specs=nano.specs时会导致引用路径中arm-none-eabi\include\newlib.h被替换为arm-none-eabi\include\newlib-nano\newlib.h, 从而导致部分结构体定义发生改变 例如下面这段代码, 在nano.specs下返回76, 未指定时返回288(依具体的gcc版本而定)
arm-none-eabi\include\newlib.h
arm-none-eabi\include\newlib-nano\newlib.h
编译FreeRTOS中如果将配置中的configUSE_NEWLIB_REENTRANT改为1就会遇到这个问题 由于程序编译时采用的定义和连接到的C库中的实际实现不一致, 从而引起连接错误或者执行时随机出错(依具体的gcc版本而定)
#include <reent.h> printf("sizeof(struct _reent): %d\n", sizeof(struct _reent));
The text was updated successfully, but these errors were encountered:
好的,后面会对这些默认参数进行修补
Sorry, something went wrong.
No branches or pull requests
在c/c++编译器标志中指定
--specs=nano.specs
时会导致引用路径中arm-none-eabi\include\newlib.h
被替换为arm-none-eabi\include\newlib-nano\newlib.h
, 从而导致部分结构体定义发生改变例如下面这段代码, 在nano.specs下返回76, 未指定时返回288(依具体的gcc版本而定)
编译FreeRTOS中如果将配置中的configUSE_NEWLIB_REENTRANT改为1就会遇到这个问题
由于程序编译时采用的定义和连接到的C库中的实际实现不一致, 从而引起连接错误或者执行时随机出错(依具体的gcc版本而定)
The text was updated successfully, but these errors were encountered: