📄 makefile
字号:
################################################################################### Copyright (c) 1995,2000 TriMedia Technologies Inc.## This sample makefile demonstrates the different stages# in the performance tuning of a sample convolution program.# # These stages are explained in the # Trimedia Programmer's Reference Manual, Chapter 6.##################################################################################ALL: DIRECT GRAFTED UNROLLED_GRAFTED \ RESTRICTED_GRAFTED CUSTOM_OPS_GRAFTED \ CUSTOM_OPS_TUNED_GRAFTED CUSTOM_OPS_TUNED_GRAFTED_O3DIRECT: @echo @echo @echo ----- Direct implementation, straightforward compilation @echo $(TCS)/bin/tmcc -p fir1.c -o fir1.out $(TCS)/bin/tmsim fir1.out $(TCS)/bin/tmcc -r fir1.c -o fir1.out $(TCS)/bin/tmsim -mm -statfile fir1.stat fir1.out $(TCS)/bin/tmprof fir1.stat fir1.out -scale 1 -funcGRAFTED: @echo @echo @echo ----- Direct implementation, profiled and grafted @echo $(TCS)/bin/tmcc -p fir1.c -o fir1.out $(TCS)/bin/tmsim fir1.out $(TCS)/bin/tmcc -G fir1.c -o fir1.out $(TCS)/bin/tmsim -mm -statfile fir1.stat fir1.out $(TCS)/bin/tmprof fir1.stat fir1.out -scale 1 -funcUNROLLED_GRAFTED: @echo @echo @echo ----- Unrolled loops, profiled and grafted @echo $(TCS)/bin/tmcc -p fir2.c -o fir2.out $(TCS)/bin/tmsim fir2.out $(TCS)/bin/tmcc -G fir2.c -o fir2.out $(TCS)/bin/tmsim -mm -statfile fir2.stat fir2.out $(TCS)/bin/tmprof fir2.stat fir2.out -scale 1 -funcRESTRICTED_GRAFTED: @echo @echo @echo ----- Restricted pointers, profiled and grafted @echo $(TCS)/bin/tmcc -p fir3.c -o fir3.out $(TCS)/bin/tmsim fir3.out $(TCS)/bin/tmcc -G fir3.c -o fir3.out $(TCS)/bin/tmsim -mm -statfile fir3.stat fir3.out $(TCS)/bin/tmprof fir3.stat fir3.out -scale 1 -funcCUSTOM_OPS_GRAFTED: @echo @echo @echo ----- Custom operators, profiled and grafted @echo $(TCS)/bin/tmcc -p fir4.c -o fir4.out $(TCS)/bin/tmsim fir4.out $(TCS)/bin/tmcc -G fir4.c -o fir4.out $(TCS)/bin/tmsim -mm -statfile fir4.stat fir4.out $(TCS)/bin/tmprof fir4.stat fir4.out -scale 1 -funcCUSTOM_OPS_TUNED_GRAFTED: @echo @echo @echo ----- Custom operators, profiled, grafted and tuned @echo $(TCS)/bin/tmcc -p fir4.c -o fir4.out $(TCS)/bin/tmsim fir4.out $(TCS)/bin/tmcc -G -tmccom -graft_tuning_file graftfile -- fir4.c -o fir4.out $(TCS)/bin/tmsim -mm -statfile fir4.stat fir4.out $(TCS)/bin/tmprof fir4.stat fir4.out -scale 1 -funcCUSTOM_OPS_TUNED_GRAFTED_O3: @echo @echo @echo ----- Custom operators, profiled, grafted and tuned @echo $(TCS)/bin/tmcc -p fir4.c -o fir4.out $(TCS)/bin/tmsim fir4.out $(TCS)/bin/tmcc -G -O3 -tmccom -graft_tuning_file graftfile -- fir4.c -o fir4.out $(TCS)/bin/tmsim -mm -statfile fir4.stat fir4.out $(TCS)/bin/tmprof fir4.stat fir4.out -scale 1 -funcclean :; rm -f *.stat *.schedlog *.t *.s *.o *.i *.out dtprof.out
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -