Skip to content

Instantly share code, notes, and snippets.

@wdwalker
Created March 16, 2017 18:07
Show Gist options
  • Save wdwalker/85cacc36adfa5757ed378431ad8ec64f to your computer and use it in GitHub Desktop.
Save wdwalker/85cacc36adfa5757ed378431ad8ec64f to your computer and use it in GitHub Desktop.
Bare Bones Blinky Memory Map (no mbed, but using mbed tools to analyze the map)
python mbed-os/tools/memap.py -t GCC_ARM -d ~/work/github/wdwalker/BBB/Release/BBB.map
+----------------------------------+-------+-------+------+
| Module | .text | .data | .bss |
+----------------------------------+-------+-------+------+
| Misc/crt0.o | 116 | 0 | 0 |
| Misc/crtbegin.o | 108 | 8 | 28 |
| Misc/crtend.o | 4 | 4 | 0 |
| Misc/crti.o | 8 | 0 | 0 |
| Misc/crtn.o | 16 | 0 | 0 |
| Misc/libc_nano.a(lib_a-exit.o) | 40 | 0 | 0 |
| Misc/libc_nano.a(lib_a-impure.o) | 4 | 96 | 0 |
| Misc/libc_nano.a(lib_a-init.o) | 72 | 0 | 0 |
| Misc/libc_nano.a(lib_a-memset.o) | 16 | 0 | 0 |
| Misc/libnosys.a(_exit.o) | 4 | 0 | 0 |
| Misc/main.o | 160 | 0 | 4 |
| Misc/startup_ARMCM3.o | 252 | 0 | 0 |
| Misc/system_LPC17xx.o | 180 | 4 | 0 |
| Subtotals | 980 | 112 | 32 |
+----------------------------------+-------+-------+------+
Allocated Heap: 3072 bytes
Allocated Stack: 1024 bytes
Total Static RAM memory (data + bss): 144 bytes
Total RAM memory (data + bss + heap + stack): 4240 bytes
Total Flash memory (text + data + misc): 1092 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment