flyingcys / rt-thread

RT-Thread is an open source IoT operating system.
http://www.rt-thread.io
Apache License 2.0
0 stars 1 forks source link

[讨论] stack_size 的问题 #22

Closed unicornx closed 2 months ago

unicornx commented 4 months ago

bsp/cvitek/cv18xx_risc-v/SConstruct

stack_lds = open('link_stacksize.lds', 'w')
if GetDepend('__STACKSIZE__'): stack_size = GetDepend('__STACKSIZE__')
stack_lds.write('__STACKSIZE__ = %d;\n' % stack_size)
stack_lds.close()

这里 stack_size = GetDepend('__STACKSIZE__') 是有何用意?GetDepend 返回值是 True/False

这里设置的 stack_size 和 Kconfig/.config/rtconfig.h 中的 CONFIG_STACKSIZE 是一个概念吗?如果是一个概念,感觉值有冲突

unicornx commented 2 months ago

提到 https://github.com/RT-Thread/rt-thread/issues/9232 去了。