Hello Malek: How are you generating the executable a.out? Seems like the problem is in the executable format.
Use (xgcc is the cross compiler gcc): xgcc -o <output_file> <assembly_file> -static or xgcc -o <output_file> -x assembler <assembly_file> -static if your assembly file does not have a '.s' suffix (which is the case in your example). -Soumyaroop On Tue, Jun 22, 2010 at 3:16 PM, Malek Musleh <malek.mus...@gmail.com> wrote: > Hello, > > I am trying to run an alpha assembly program in M5. I just wrote a few > line asm program (test01.asm) and tried to compile it with the alpha > cross compiler: > > crosscompilers/ALPHA/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-as > > > It is able to compile without any warnings or errors, but when I try > running in using Alpha_SE/m5.opt I get the following error: > > m5.opt: build/ALPHA_SE/base/loader/elf_object.cc:351: > ElfObject::ElfObject(const std::string&, int, size_t, uint8_t*, > ObjectFile::Arch, ObjectFile::OpSys): Assertion `text.size != 0' > failed. > Program aborted at cycle 0 > Aborted > > > My command line is: command line: ./build/ALPHA_SE/m5.opt > ./configs/example/se.py -c ../alpha_programs/asm/a.out > > My test program is as follows: > > test01.asm: > > > .align 4 > .file 1 "test01.asm" > .loc 1 2 > .globl main > .ent main > > main: > > lda $4, 15($31) # $31 is 0, 0xF > addl $4, 1, $1 > and $4, 0XFF > halt > .end main > > Do I need to modify the config script to run asm binaries, or is there > something else that I am missing? > > Thanks. > > Malek > _______________________________________________ > m5-users mailing list > m5-users@m5sim.org > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users > -- Soumyaroop Roy Ph.D. Candidate Department of Computer Science and Engineering University of South Florida, Tampa http://www.csee.usf.edu/~sroy _______________________________________________ m5-users mailing list m5-users@m5sim.org http://m5sim.org/cgi-bin/mailman/listinfo/m5-users