File: compile-and-run-stalin-benchmark

package info (click to toggle)
stalin 0.11-10
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 71,700 kB
  • sloc: ansic: 1,327,976; lisp: 88,332; sh: 1,517; makefile: 229; sed: 100; csh: 28
file content (24 lines) | stat: -rwxr-xr-x 540 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

set -xe

unset noclobber
ulimit -s unlimited
ulimit -c 0

s="-d0 -d1 -d5 -d6 -Ob -Om -On -Or -Ot -k"

case `uname -m` in
  i[3456]86|x86_64|sun4*|IP*|aarch64)
    c="-copt -O3 -copt -fomit-frame-pointer -copt -Wall -copt -freg-struct-return";;
  alpha)
    c="-copt -O3 -copt -fomit-frame-pointer -copt -Wall -copt -ieee";;
  *)
    echo "Cannot (yet) run Stalin on this architecture"
  esac
o="$s $c"
echo compile $1
sed -f stalin.sed $1.sc >$1-stalin.sc
time ../stalin $o $2 $1-stalin
echo run $1
time ./$1-stalin >/dev/null