printhelp() {
echo -check generate check code
+echo -dmalloc link in dmalloc
echo -recover compile task code
echo -specdir directory
echo -debug generate debug symbols
CURDIR=`pwd`
CHECKFLAG=false
RECOVERFLAG=false
+USEDMALLOC=false
SPECDIR=`pwd`
SRCFILES=''
EXTRAOPTIONS=''
then
JAVAOPTS="$JAVAOPTS -mainclass $2"
shift
+elif [[ $1 = '-dmalloc' ]]
+then
+USEDMALLOC=true
elif [[ $1 = '-recover' ]]
then
RECOVERFLAG=true
INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
fi
+if $USEDMALLOC
+then
+EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
+fi
+
gcc $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
tmpbuilddirectory/methods.c $FILES -o $MAINFILE.bin
+
exit
\ No newline at end of file