在mibench基准测试中更改编译器路径

时间:2016-08-14 12:20:03

标签: ubuntu

我需要将mibench基准测试中的默认编译器路径更改为预编译的alpha交叉编译器的路径。制作文件如下:



FILE1 = basicmath_small.c   rad2deg.c  cubic.c   isqrt.c
FILE2 = basicmath_large.c   rad2deg.c  cubic.c   isqrt.c

all: basicmath_small basicmath_large

basicmath_small: ${FILE1} Makefile
	gcc -static -O3 ${FILE1} -o basicmath_small -lm
basicmath_large: ${FILE2} Makefile
	gcc -static -O3 ${FILE2} -o basicmath_large -lm

clean:
	rm -rf basicmath_small basicmath_large output*




我将gcc的路径更改为alpha编译器,如下所示:



basicmath_small: ${FILE1} Makefile
	PATH:=myfolder/bin/gcc -static -O3 ${FILE1} -o basicmath_small -lm
basicmath_large: ${FILE2} Makefile
	PATH:=myfolder/bin/gcc -static -O3 ${FILE2} -o basicmath_large -lm




但它会给我带来错误。我的主机处理器是英特尔。我在vmware&上安装了ubuntu 14.4。我在我的ubuntu上使用gem5页面的交叉编译器:

Alpha: gcc-3.4.3 , gcc-4.3.2, glibc-2.6.1 (NPTL,x86/64) , gcc-4.3.2, glibc-2.6.1 (NPTL,x86/32)

0 个答案:

没有答案