#!/bin/bash #copy monano functions into the current directory for program execution ./copy_monano.sh source ~/rtems.bash #get script arguments number_thread=$1 filename=$2 #execution of monano per number of threads for ((i=1; i<=$number_thread; i++)) do #configuration of the maximum number of threads per execution ./gen_monano_configure.sh $i echo "---------execution of monano with $i thread(s) and extraction of the size----------" if (($i==1)) then ./start.sh 1 |grep text, |sed -e 's/ section: .text, addr: 0x40000000, size: /1,/' -e 's/ bytes//' >$filename else ./start.sh $i |grep text, |sed -e 's/ section: .text, addr: 0x40000000, size: /'"$i"',/' -e 's/ bytes//' >>$filename fi done #remove monano functions from the current directory ./remove_monano.sh make clean