projects
/
fw
/
altos
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c73edbd1e8f88ca1d3cda2f697b0a1b9312fe981
[fw/altos]
/
src
/
util
/
check-avr-mem
1
#!/bin/sh
2
nm "$@" |
3
grep ' N _end' |
4
awk '{ iram = strtonum("0x" $1) % 0x10000;
5
if ( iram > 0xaff) {
6
printf ("%d bytes of ram more than %d available\n", iram, 0xaff);
7
exit(1);
8
} else
9
exit(0); }'