patacongo commented on pull request #1597: URL: https://github.com/apache/incubator-nuttx/pull/1597#issuecomment-674886019
> > > > This is a no-op. There is nothing in the system that uses any start up parameter. nsh_main() is the most common start-up function and it ignores any arguments and do all of other main() functions. > > nsh consume a large runtime ram(4KB), but it contain the critical code to initialize the system. Does it make sense to let nsh exit once the initialiation finish like this: > > ``` > nsh -c exit > ``` Yes, NSH can exit when it is no longer needed. It can always be restarted again if needed for a UI. You could even spawn NSH as an ELF executable at start-up, then when it exits .text, .bss, or .data would be freed too (CONFIG_INIT_FILEPATH). It could still be restarted when necessary if there is sufficient free memory. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
