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

SCM Repository

[smlnj] Annotation of /config/releases/release-110.71/_heap2exec
ViewVC logotype

Annotation of /config/releases/release-110.71/_heap2exec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1747 - (view) (download)
Original Path: sml/trunk/config/_heap2exec

1 : mblume 1747 #!@SHELL@
2 :    
3 :     if [ x${SMLNJ_HOME} = x ] ; then
4 :     BIN_DIR="@BINDIR@"
5 :     else
6 :     BIN_DIR=${SMLNJ_HOME}/bin
7 :     fi
8 :    
9 :     ARCH_N_OPSYS=`"$BIN_DIR/.arch-n-opsys"`
10 :     if [ "$?" != "0" ]; then
11 :     echo "$CMD: unable to determine architecture/operating system"
12 :     exit 1
13 :     fi
14 :     eval $ARCH_N_OPSYS
15 :    
16 :     RUNX=${BIN_DIR}/.run/runx.${ARCH}-${OPSYS}
17 :     H2A=${BIN_DIR}/heap2asm
18 :    
19 :     if [ $# != 2 ] ; then
20 :     echo usage: $0 heapfile execfile
21 :     exit 1
22 :     fi
23 :    
24 :     heapfile=$1
25 :     execfile=$2
26 :    
27 :     if [ -f $RUNX ] ; then
28 :     if [ -f $H2A ]; then
29 :     ${H2A} "$heapfile" "$execfile".s
30 :     cc -c "$execfile".s
31 :     ld -o "$execfile" ${RUNX} "$execfile".o -lc
32 :     rm "$execfile".[so]
33 :     else
34 :     echo $0: heap2asm is not installed
35 :     exit 2
36 :     fi
37 :     else
38 :     echo $0: linkable runtime system object not available
39 :     exit 2
40 :     fi
41 :    
42 :     exit 0

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