msdk icon indicating copy to clipboard operation
msdk copied to clipboard

feat(Build): Add --print-memory-usage to linker options

Open BrentK-ADI opened this issue 1 year ago • 0 comments

Add the --print-memory-usage option to the linker arguments for a end-of-build breakdown of usage.

- LD /c/Workspace/MSDK_Development/brentk-adi-fork/Examples/MAX32650/CLCD_FreeRTOS/build/CLCD_FreeRTOS.elf
Memory region         Used Size  Region Size  %age Used
             ROM:          0 GB        64 KB      0.00%
           FLASH:       60880 B         3 MB      1.94%
            SRAM:      637696 B         1 MB     60.82%
arm-none-eabi-size --format=berkeley /c/Workspace/MSDK_Development/brentk-adi-fork/Examples/MAX32650/CLCD_FreeRTOS/build/CLCD_FreeRTOS.elf
   text    data     bss     dec     hex filename
  58300    2580  634624  695504   a9cd0 C:/Workspace/MSDK_Development/brentk-adi-fork/Examples/MAX32650/CLCD_FreeRTOS/build/CLCD_FreeRTOS.elf

BrentK-ADI avatar Aug 16 '24 12:08 BrentK-ADI