Nuclei-Software / nuclei-studio

Document, User Guide, Wiki, and Discussions For Nuclei Studio
https://nuclei-software.github.io/nuclei-studio/
Eclipse Public License 2.0
1 stars 2 forks source link

How to print memory usage in Nuclei Studio #4

Closed fanghuaqi closed 8 months ago

fanghuaqi commented 10 months ago

In order to print memory usage when compile an application, you can do it like this:

Click Nuclei Settings in selected project, and pass extra -Wl,--print-memory-usage in Extra Link Flags, and save settings, and then build this project, you will be able to see memory usage.

image

Building target: 050hello.elf
Invoking: GNU RISC-V Cross C++ Linker
... ...
Memory region         Used Size  Region Size  %age Used
             ilm:        8280 B        64 KB     12.63%
             ram:         64 KB        64 KB    100.00%
Finished building target: 050hello.elf

Why the ram usage here is 100% used?

For Nuclei SDK or NMSIS template linker script, the stack is placed at the bottom of ram memory, so the ram usage is 100%.

fanghuaqi commented 10 months ago

You can also refer to this https://www.rvmcu.com/community-topic-id-1741.html