Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /config/releases/release-110.72/_heap2exec
ViewVC logotype

View of /config/releases/release-110.72/_heap2exec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1747 - (download) (annotate)
Fri Jan 14 23:53:21 2005 UTC (14 years, 7 months ago) by mblume
Original Path: sml/trunk/config/_heap2exec
File size: 749 byte(s)
new experimental heap2exec facility
#!@SHELL@

if [ x${SMLNJ_HOME} = x ] ; then
    BIN_DIR="@BINDIR@"
else
    BIN_DIR=${SMLNJ_HOME}/bin
fi

ARCH_N_OPSYS=`"$BIN_DIR/.arch-n-opsys"`
if [ "$?" != "0" ]; then
  echo "$CMD: unable to determine architecture/operating system"
  exit 1
fi
eval $ARCH_N_OPSYS

RUNX=${BIN_DIR}/.run/runx.${ARCH}-${OPSYS}
H2A=${BIN_DIR}/heap2asm

if [ $# != 2 ] ; then
    echo usage: $0 heapfile execfile
    exit 1
fi

heapfile=$1
execfile=$2

if [ -f $RUNX ] ; then
    if [ -f $H2A ]; then
	${H2A} "$heapfile" "$execfile".s
	cc -c "$execfile".s
	ld -o "$execfile" ${RUNX} "$execfile".o -lc
	rm "$execfile".[so]
    else
	echo $0: heap2asm is not installed
	exit 2
    fi
else
    echo $0: linkable runtime system object not available
    exit 2
fi

exit 0

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0