Hi all,

I want to cross-compile some benchmarks so that I can run them in M5. I'm using a ALPHA_SE mode M5 on a x86_64 Ubuntu machine. Potentially I target to use MiBench or SPEC CPU 2000. I downloaded the pre-compiled cross-compiler for Alpha from m5sim.org.

*1) For MiBench*, it has a simple src code/data structure with a simple Makefile. For example, qsort, I modifed the Makefile of it as follows:

-------------------------------------------------------------------------------------------------
FILE1 = qsort_small.c
FILE2 = qsort_large.c

all: qsort_small qsort_large

qsort_small: qsort_small.c Makefile
/export/research57/weixun/tools/M5/crosstool/gcc-3.4.3-glibc-2.3.5/alpha-unknown-linux-gnu/bin/alpha-unknown-linux-gnu-gcc -static qsort_small.c -O3 -o qsort_small -lm
qsort_large: qsort_large.c Makefile
/export/research57/weixun/tools/M5/crosstool/gcc-3.4.3-glibc-2.3.5/alpha-unknown-linux-gnu/bin/alpha-unknown-linux-gnu-gcc -static qsort_large.c -O3 -o qsort_large -lm

clean:
    rm -rf qsort_small qsort_large output*
-------------------------------------------------------------------------------------------------

I used the option "-lm" since the original "-lc" lead to errors like "undefined references to 'exp'". If "-L /export/research57/weixun/tools/M5/crosstool/gcc-3.4.3-glibc-2.3.5/alpha-unknown-linux-gnu/lib" is used, the error still remains.

The compilation is successful. However, if I run it using configs/example/se.py, I got the errors:

-------------------------------------------------------------------------------------------------
.........................................................
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
panic: Tried to access unmapped address 0xa8.
 @ cycle 4947000
[invoke:build/ALPHA_SE/arch/alpha/faults.cc, line 204]
Memory Usage: 577796 KBytes
For more information see: http://www.m5sim.org/panic/5932f339
Program aborted at cycle 4947000
Abort
-------------------------------------------------------------------------------------------------

Other benchmarks in MiBench shows similar errors or just simplely hang on "info: Increasing stack size by one page.".

I guess the compile options are not correct or the right library is not linked. Please help...........................




*2) For SPEC CPU 2000*, it is more complicated. I copied the entire CD to a local directory. The problem is I do not have the su privilege on the machine I worked on. So the install.sh does not work correctly. Is there a simpler way for cross-compile SPEC CPU 2000 benchmarks (or at least some of them) for M5?



Thanks!!!

--
Best Regards,

Wang, Weixun

Department of Computer&  Information Science&  Engineering
Gator College of Engineering
University of Florida
Gainesville, FL 32611
http://www.cise.ufl.edu/~wewang

_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to