5 HEADER_STACK=`awk '/#define AO_STACK_START/ {print strtonum($3)}' $HEADER`
6 MEM_STACK=`awk '/Stack starts at/ {print strtonum ($4)}' $MEM`
7 XRAM_END=`awk '/EXTERNAL RAM/ { print strtonum ($4)}' $MEM`
8 FLASH_END=`awk '/ROM\/EPROM\/FLASH/ { print strtonum ($3)}' $MEM`
10 if [ "$HEADER_STACK" -lt "$MEM_STACK" ]; then
11 echo $MEM_STACK | awk '{ printf ("Set AO_STACK_START to at least 0x%x\n", $1); }'
14 if [ "$XRAM_END" -ge 65024 ]; then
15 echo $XRAM_END | awk '{ printf ("Uses too much XRAM, 0x%x >= 0x%x\n", $1, 65024); }'
18 if [ "$FLASH_END" -ge 32768 ]; then
19 echo $FLASH_END | awk '{ printf ("Uses too much FLASH, 0x%x >= 0x%x\n", $1, 32768); }'