pcb and initial code from https://github.com/das-labor/borgware-2d.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
309 B
13 lines
309 B
#!/bin/bash
|
|
j=0
|
|
for i in ".text" ".data" ".bss"
|
|
do
|
|
val[$j]=$(avr-size -A $1 | grep $i | sed -e "s/^$i *//g" | cut -d " " -f1)
|
|
let j=$j+1
|
|
done
|
|
echo ""
|
|
echo "Program: $(echo ${val[0]}+${val[1]}|bc) bytes"
|
|
echo "(.text + .data)"
|
|
echo ""
|
|
echo "Data: $(echo ${val[2]}+${val[1]}|bc) bytes"
|
|
echo "(.data + .bss)"
|
|
|