On 7/13/23, Nathan Hartman <hartman.nat...@gmail.com> wrote: > On Thu, Jul 13, 2023 at 12:24 PM Gregory Nutt <spudan...@gmail.com> wrote: >> >> >> > Maybe you could that a look in the minnsh PoC, it was running on MCU >> > with less than 16KB Flash and 8KB RAM. As you can see in the image it >> > is using less than 2KB RAM: >> >> To get to the minimal size, that configuration also depended on the >> ability to disabled file system support (and, in the longer run, on the >> development of a HAL). There is no HAL and the option to disable the >> file system has been removed. > > > This is one of the reasons I think we should not be too eager to > remove Kconfig options. I know that we have many Kconfig options and > it can be frustrating to maintain sometimes, but there are times when > we really need a minimalistic build, such as to implement a bootloader > app. Also, other ideas could be implemented that will benefit from > minimalistic builds. >
I agree! But what is done, is done! Probably now adding those options back (to remove things not needed by a bootloader) will be more difficult. Maybe instead of removing the virtual file system we could try to reduce its size, these tips are good to find which functions need to be optimized: https://acassis.wordpress.com/2015/04/27/how-to-verify-which-functions-are-eating-space-in-an-elf-file/ BR, Alan