#if 1 #pragma import(__use_no_semihosting) 在STM32中请问这句是什么意思??

如题所述

避免引入半主机函数。
1) #if 1 //为下一步至#endif 的程序段设置条件,“1”为真,执行此段;否则跳过之。
2) #pragma import(__use_no_semihosting) //#pragma编译指示的预处理指令,一般格式为:
#pragma para //pragma为预编译指令的编译指示,para为参数
/*依据参数分类执行,限于通知编译器可以做的行为,此指令专用于机器或操作系统。import(__use_no_semihosting) 即为参数,import为导入类,()括号内的字符为导入的字符,通知编译器不要从C库链接时使用带有半主机semihosting的函数 */
温馨提示:答案为网友推荐,仅供参考
第1个回答  2012-01-12
宏。
从 if 起 到 endif 中
保证 “不使用/不输入/不调用 semihosting“本回答被网友采纳
相似回答