This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Print data, rodata, bss sizes in bytes | |
# | |
# Usage: | |
# OBJDUMP=../xtensa-lx106-elf/bin/xtensa-lx106-elf-objdump ./mem_usage.sh app.out [total_mem_size] | |
# | |
# If you specify total_mem_size, free heap size will also be printed | |
# For esp8266, total_mem_size is 81920 | |
# |