From: adam Date: Tue, 11 May 2004 06:48:20 +0000 (-0700) Subject: added linpack benchmark X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=commitdiff_plain;h=3971c8cafb25854247125cb1604879f5cf4b8b37;ds=sidebyside added linpack benchmark darcs-hash:20040511064820-5007d-cbd38caae41628e7f89b74ce66ed8c53a140074b.gz --- diff --git a/upstream/Makefile b/upstream/Makefile index 528f455..ecbc416 100644 --- a/upstream/Makefile +++ b/upstream/Makefile @@ -62,6 +62,9 @@ tasks/extract_tex: gpc := $(usr)/bin/mips-unknown-elf-gpc gpc_flags := --big-endian -w -lgpc -lc $(usr)/mips-unknown-elf/lib/support*.o gpc_flags += -Wl,-T,$(usr)/mips-unknown-elf/lib/linker.ld +g77 := $(usr)/bin/mips-unknown-elf-g77 +g77_flags := --big-endian -w -lg2c -lc $(usr)/mips-unknown-elf/lib/support*.o +g77_flags += -Wl,-T,$(usr)/mips-unknown-elf/lib/linker.ld # FIXME ugly path hacks evil bad nestedvm := java -cp $(usr)/../build/bcel/bcel-5.1.jar:$(usr)/../../nestedvm.jar org.ibex.nestedvm.Compiler -outformat class @@ -80,6 +83,18 @@ tasks/build_tex: tasks/full_toolchain tasks/extract_tex #ln -s tex.pool 'TeXformats:TEX.POOL ' #ln -s trip.tfm 'TeXfonts:trip.tfm ' #ln -s trip.tex 'trip.tex ' + touch $@ + +tasks/extract_linpack: tasks/download_linpack ; touch $@ +tasks/download_linpack: + mkdir -p build/linpack + cd build/linpack; wget -N http://www.math.iastate.edu/burkardt/f_src/linpack_bench/linpack_bench.f + touch $@ + +tasks/build_linpack: tasks/full_toolchain tasks/extract_linpack + cd build/linpack; $(g77) linpack_bench.f $(g77_flags) -o linpack.mips + cd build/linpack; $(nestedvm) -o unixruntime -outfile Linpack.class Linpack linpack.mips + touch $@ tasks/download_%: if [ -z "$(url_$*)" ]; then echo "No url for $*" >&2; false; fi