#!/bin/bash
#
# Run and time a lisp program with sbcl,
# ignoring all init files and the read/eval/print loop.
# Automatically quit after execution.

load_flags=""

for lfile in "$@"
do
	load_flags="$load_flags --load $lfile"
done

TIMEFORMAT="SBCL:           %3lR,  %3lU,  %3lS"
eval \
"sbcl --noinform --end-runtime-options \
  --noprint --no-sysinit --no-userinit \
  $load_flags \
  --eval '(quit)' \
  --end-toplevel-options"

