Microlib & Stdlib内存模型区别
作者:互联网
KEIL Undefined symbol __use_two_region_memory
1. Microlib does not support selectable one or two region memory models as the standard library (stdlib) does.
2.Microlib provides only the two region memory model with separate stack and heap regions.
https://www.keil.com/support/man/docs/armclang_lib/armclang_lib_chr1358938938431.htm
__use_two_region_memory
;DEFINE BELOW VAR TO INIT SEPARATE STACK AND HEAP
ARM_LIB_HEAP 0x00810000-8192 EMPTY 4096-4
{
}
ARM_LIB_STACK 0x00810000-4096 EMPTY 2048-4
{
}
target_link_options(media PUBLIC
--debug --strict --no_remove --entry 0 --no_startup
--map --info totals --debug --list_mapping_symbols
--symbols
--scatter ${CMAKE_CURRENT_LIST_DIR}/${SCATFILE}
--library_type=microlib
)
标签:__,Microlib,--,region,two,内存,Stdlib,memory 来源: https://blog.csdn.net/sinat_38245860/article/details/113701251