Tesko mi je formulčisati pitanje ali evo pokusacu.
Prvo da vam pokazem stanje sta se gdje nalazi:
Desktop/paketi# ls
dodatni libc6-dev_2.4-1ubuntu12.3_i386.deb libc6_2.4-1ubuntu12.3_i386.deb simplebench.little.tar simplesim-3v0d.tgz
dodatni.tar libc6-i686_2.4-1ubuntu12.3_i386.deb linux-libc-dev_2.6.17.1-11.35_i386.deb simplesim-3.0 spec95-little
Desktop/paketi# cd simplesim-3.0/
Desktop/paketi/simplesim-3.0# ls
ANNOUNCE-3.0 WARRANTY dlite.h eventq.c machine.h options.h regs.c sim-cache.o sim-profile.c symbol.o textprof.pl
CONTRIBUTORS bitmap.h dlite.o eventq.h machine.o options.o regs.h sim-eio sim-profile.o syscall.c version.h
FAQ bpred.c eio.c hack_guide.pdf main.c pipeview.pl regs.o sim-eio.c sim-safe syscall.h
LICENSE bpred.h eio.h hack_guide.ps main.o ptrace.c resource.c sim-eio.o sim-safe.c syscall.o
Makefile bpred.o eio.o host.h memory.c ptrace.h resource.h sim-fast sim-safe.o sysprobe
PROJECTS cache.c endian.c libexo memory.h ptrace.o resource.o sim-fast.c sim.h sysprobe.c
README cache.h endian.h loader.c memory.o range.c sim-bpred sim-fast.o stats.c target-alpha
README.eio cache.o endian.o loader.h misc.c range.h sim-bpred.c sim-outorder stats.h target-pisa
README.retarget config eval.c loader.o misc.h range.o sim-bpred.o sim-outorder.c stats.o tests
README.sim-inorder config.h eval.h machine.c misc.o redir.bash sim-cache sim-outorder.o symbol.c tests-alpha
README.windows dlite.c eval.o machine.def options.c redir.sh sim-cache.c sim-profile symbol.h tests-pisa
Ovo prolazi
…Desktop/paketi/simplesim-3.0# ./sim-cache -cache:d l1 dl1:1024:16:1:l …/spec95-little/go.ss 2 8
ali sada trebam koristit drugi primjer:
U paketu dodatni.tgz imate tri programa:
- dijkstra, koji implementira Dijkstra algoritam za pronala enje najkra eg puta izme u
dvije ta ke; - rijndael, alat/standard za ifriranje;
- compress, alat za kompresiju;
za koja trebate uraditi sljedeće:
za proizvoljnu veličinu keša odrediti optimalnu veličinu bloka
Pitanje:
Ako idem istomanalogijom sa naredbom ona ne prolazi:
Desktop/paketi/dodatni# ./dijkstra -cache:dl1 dl1:1024:16:1:l ./dijkstra/dijkstra_small.ss input.dat