2017-08-21 36 views
0

我需要对这段代码的解释! 我了解一些,但在IAR是否有#pragma位置的任何定义?

不够

#if defined (__ICCARM__) 
#pragma location="ExtQSPIFlashSection" 
#else 
__attribute__((section(".ExtQSPIFlashSection"))) 
#endif 

这是

谢谢反正:)

+0

你对“编译指示位置”的定义有什么意义 –

回答

0

#pragma__attribute__(......只是专用于特定的编译器。有了它们,你可以做到完全一样 - 将对象放入内存中的特定部分。部分在链接描述文件中定义

+0

嗨,谢谢你的答案,我可以看到内存段吗?您链接脚本中的 – Alireza

+0

https://www.iar.com/support/tech-notes/linker/how-do-i-place-a-group-of-functions-or-variables-in-a-specific-section/ –

+0

IAR中的链接器脚本在哪里?格式是什么? – Alireza

相关问题