📄 makefile
字号:
SHELL=/bin/sh###-- If all you want to do is change the cache parameters,###-- change D_SIZE, D_LINESIZE and D_WAYS below, and then###-- do 'make cleancache ; make cachesim.o'. You shouldn't ###-- need a Haskell compiler. Otherwise ...###--###-- You need a Haskell compiler to build cacheprof.###-- You can use either ghc (recommended), hbc or nhc.###-- All are open-source and have pre-built binary###-- distributions available free from http://haskell.org.###-- If you are compiling with Glasgow Haskell (ghc) ...###-- Known to work with ghc-4.04pl1HC=ghc-4.04HFLAGS=-cpp -H24m -fglasgow-exts -syslib posix -ONOFLAGS=###-- If you are compiling with Chalmers Haskell (hbc) ...###-- Known to work with hbc-0.9999.5b, but sometimes###-- seems to generate a cacheann which loops ...###-- ... so I don't recommend it#HC=hbc#HFLAGS=-cpp -H24m#NOFLAGS=-noflags###-- If you are compiling with Niklas Rojemo's &###-- Malcolm Wallace's nhc98 compiler (1.0pre13).###-- Generates slow but workable executables.###-- Beware! nhc98 doesn't know about getPID yet, so###-- /tmp/cacheprof* files don't have unique names :-(#HC=nhc98#HFLAGS=+RTS -H24m -RTS -cpp#NOFLAGS=###-- The following set the default cache to use###-- I think these numbers describe the L1 data cache###-- on an AMD K6-2. To reconfigure for a new cache size,###-- do 'make cleancache' and then 'make'.D_SIZE= 32768D_LINESIZE= 32D_WAYS= 2CC=gccCFLAGS=-Wall -W -Wno-unused -O2 -fomit-frame-pointerOBJS= Generics.o \ Arch_x86.o \ CacheAnn.o \ StaticFM.o \ CacheProf.o \ CacheGen.o \ cachesim.oall: cacheann cacheprof cacheprint cachegen cachesim.ocacheann: Generics.o Arch_x86.o CacheAnn.o $(HC) $(HFLAGS) -o cacheann Generics.o CacheAnn.o Arch_x86.ocacheprof: CacheProf.o $(HC) $(HFLAGS) $(NOFLAGS) -o cacheprof CacheProf.ocacheprint: StaticFM.o CachePrint.o $(HC) $(HFLAGS) $(NOFLAGS) -o cacheprint StaticFM.o CachePrint.ocachegen: CacheGen.o $(HC) $(HFLAGS) $(NOFLAGS) -o cachegen CacheGen.o#clean: # rm -f *.o *.hi cacheann cacheprof cacheprint cachesim_doref.c#cleanish:# rm -f CacheAnn.o Generics.o Arch_*.o cacheanncleancache: rm -f cachesim_doref.c cachesim.ocachesim_doref.c: rm -f cachesim_doref.c ./cachegen $(D_SIZE) $(D_LINESIZE) $(D_WAYS) > cachesim_doref.ccachesim.o: cachesim.c cachesim_doref.c $(CC) $(CFLAGS) -c cachesim.cGenerics.o: Generics.hs $(HC) $(HFLAGS) -c Generics.hsArch_x86.o: Arch_x86.hs $(HC) $(HFLAGS) -c Arch_x86.hsCacheAnn.o: CacheAnn.hs $(HC) $(HFLAGS) -c CacheAnn.hsCacheProf.o: CacheProf.hs $(HC) $(HFLAGS) -c CacheProf.hsStaticFM.o: StaticFM.hs $(HC) $(HFLAGS) -c StaticFM.hsCachePrint.o: CachePrint.hs $(HC) $(HFLAGS) -c CachePrint.hsCacheGen.o: CacheGen.hs $(HC) $(HFLAGS) -c CacheGen.hstarfile: tar cvf cacheprof99MMDD.tar Makefile [A-Z]*.hs cachesim.c \ cacheprof_hooks1_x86.s cacheprof_hooks2_x86.s \ LICENSE README documentation.htmlbindist: cacheprof cacheann cachegen cacheprint cachesim.o strip cacheprof cacheann cachegen cacheprint tar cvf cacheprof99MMDD-bin-x86-linux.tar Makefile \ [A-Z]*.hs \ cacheprof_hooks1_x86.s cacheprof_hooks2_x86.s \ cachesim.c cachesim.o \ LICENSE README documentation.html \ cacheprof cacheann cachegen cacheprint bzip2 -vf cacheprof99MMDD-bin-x86-linux.tar
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -