Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

BrentK-ADI
Copy link
Contributor

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

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

@Jake-Carter Jake-Carter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, what a useful option. Thanks

@Jake-Carter Jake-Carter merged commit 039fabd into analogdevicesinc:main Aug 20, 2024
7 of 8 checks passed
sihyung-maxim pushed a commit to analogdevicesinc/hal_adi that referenced this pull request Aug 20, 2024
ozersa pushed a commit to analogdevicesinc/hal_adi that referenced this pull request Sep 11, 2024
ozersa pushed a commit to analogdevicesinc/hal_adi that referenced this pull request Sep 11, 2024
@BrentK-ADI BrentK-ADI deleted the linker-usage branch October 23, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants