Skip to content

Instantly share code, notes, and snippets.

View kzyapkov's full-sized avatar

Kiril Zyapkov kzyapkov

  • KN12
View GitHub Profile
@kzyapkov
kzyapkov / mem_usage.sh
Last active August 29, 2015 14:26 — forked from igrr/mem_usage.sh
Get memory usage from elf file (esp8266 toolchain, using linker script from SDK)
#!/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
#