JianyuWang0623 opened a new pull request, #2943:
URL: https://github.com/apache/nuttx-apps/pull/2943

   ## Summary
   Using `lib_get_tempbuffer()` to save stack space
   1. apps/nshlib: Using `lib_get_tempbuffer()` to save stack space
   2. apps/**nshlib**: replace `CONFIG_NSH_LINELEN` to `LINE_MAX`
   3. apps/**system**: replace `CONFIG_NSH_LINELEN` to `LINE_MAX` (Picked from 
https://github.com/apache/nuttx-apps/pull/2918 by @anchao )
   
   ## Impact
   - apps/nshlib
   - apps/system
   
   ## Testing
   1. Selftest as commit message shown
       - Config: "esp32s3-devkit:adb" with `CONFIG_LINE_MAX=512`
       - Test CMD: `ls | cat | cat | cat`
   
       - Without this patch
   
         |                | Before Test CMD | After Test CMD  |
         |---------------:|----------------:|----------------:|
         | nsh_main.STACK | 0002624/0008096 | 0002624/0008096 |
         |       sh.STACK | 0003360/0004008 | 0003360/0004008 |
         |     Free/Total |   355288/403116 |   355288/403116 |
   
       - With this patch
   
         |                | Before Test CMD | After Test CMD  |
         |---------------:|----------------:|----------------:|
         | nsh_main.STACK | 0001616/0008096 | 0001616/0008096 |
         |       sh.STACK | 0002352/0004008 | 0002352/0004008 |
         |     Free/Total |   355288/403116 |   354760/403116 |
   2. CI
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to