Link.c
资源名称:uCOS-II.rar [点击查看]
上传用户:jinguanrq
上传日期:2022-06-04
资源大小:724k
文件大小:1k
源码类别:
uCOS
开发平台:
C/C++
- /////////////////////////////////////////////////////////////////////////
- extern char Image_RO_Limit[];
- extern char Image_RO_Base[];
- extern char Image_RW_Limit[];
- extern char Image_RW_Base[];
- extern char Image_ZI_Limit[];
- extern char Image_ZI_Base[];
- void _Link(void)
- {
- Uart_Printf("n Miscellaneous settings of the Linker Script file(*.ld):n");
- Uart_Printf(" Image_RO_Base = 0x%xn",Image_RO_Base);
- Uart_Printf(" Image_RO_Limit = 0x%xn",Image_RO_Limit);
- Uart_Printf(" ROM code Total is used: %dK Bytesn",
- (Image_RO_Limit-Image_RO_Base)/1024);
- Uart_Printf(" Image_RW_Base = 0x%xn",Image_RW_Base);
- Uart_Printf(" Image_RW_Limit = 0x%xn",Image_RW_Limit);
- Uart_Printf(" Image_ZI_Base = 0x%xn",Image_ZI_Base);
- Uart_Printf(" Image_ZI_Limit = 0x%xn",Image_ZI_Limit);
- Uart_Printf(" RAM Total is used: %dK Bytesn",
- (Image_RW_Limit-Image_RW_Base)/1024+(Image_ZI_Limit-Image_ZI_Base)/1024);
- }