Hi, everybody
I want to run some ARM executables or benchmark (SPEC2006). But I met one problem.
The procedure is:
1. One simple helloworld.c:
#include <stdio.h>
int main(void) {
printf("hello world\n");
return 0;
}
2. I used the command "arm-linux-gnueabi-gcc -Wall -O2 -march=armv5 -mfpu=vfp3 -static -o helloworld helloworld.c" to generate the ARM executable. And the info of the helloworld file is
helloworld: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 3.2.0, BuildID[sha1]=483d7c9f1f1b0eb3738f00bc0c747003531df288, not stripped
3. When I used esesc to run this helloworld, I had the problem as below:
STARTING QEMU ......
QEMUReader: Initializing qemu...
Starting qemu with
arg[0] is: qemu
arg[1] is: helloworld
helloworld: Invalid ELF image for this architecture
I noticed that in esesc.conf, the benchmark examples are based on MIPS.
Do I need to explicitly set the qemu platform (arm or mips)?
Any suggestion for generating arm benchmark?
Best,
Chao