在keil文件中可以使用#warning来打印编译时语句。例如:
#warning xxxx is not defined
在makefile中打印:
-DCONFIDENTIAL='__attribute__((section("confidential")))'
SECTIONS
{
.confidential (NOLOAD) : {
*(confidential)
ASSERT ((SIZEOF(.confidential) <= 32K), "Error: Confidential section too big!");
} >ram
.header : ALIGN(4) {
KEEP(*(.header));
} >rom AT>rom
}