Thanks for your kindly reply. While telnet-ing, it is not possible to run script file. How could I use dumpstat in command line? Also I have used my linux gcc compiler to build binaries, but when I have runned produced binary in gem5, I've got error. So I need to compile my c code with diskimage's gcc. I cheked the disk image and I am sure it has gcc.
On Mon, Dec 30, 2013 at 3:43 AM, Tod <[email protected]> wrote: > 1st, while telnet-ing if you use the m5op (m5 dumpstats), you can save > the simulation statistics, i.e., traces. > > 2nd, you can use 'gcc' inside the script but you need to see if gcc is > there in the diskimage. Yes, it is possible but maybe not the recommended > way. > > Building the binary using emulator and executing the it using gem5 would > be better. Normally 'program execution traces' are of interest. > > best. > > Tod > > > > > > --------- 원본 메일 --------- > > *보낸사람*: Zohreh Naghibi <[email protected]> > *받는사람* : gem5 users mailing list <[email protected]> > *날짜*: 2013년 12월 30일 월요일, 19시 31분 00초 +0900 > *제목*: Re: [gem5-users] Compile by Scripts > > Thanks for your help. > Actually I meant to compile a workload by gcc command but I wanted to use > this command in the script. Is it possible or I took the wrong way? > Because by telnet-ing and compiling and running workload my trace file are > empty, but when I use script to compile and run my c code the output is not > empty. > I wonder whether there is any way to use "gcc MyCode.c -o out" and "./out > " in script or not. When I compile my c code in the script file, I get this > error: "segmentation fault ". > > > > On Mon, Dec 30, 2013 at 1:29 AM, Tod > <[email protected]<http://hanmail/mail/[email protected]> > > wrote: > >> Please have a look at: http://www.m5sim.org/Running_gem5 >> >> >> And there is this snippet of a run_script.rcS: >> >> >> echo -n "setting up network..." >> /sbin/ifconfig eth0 192.168.0.10 txqueuelen 1000 >> /sbin/ifconfig lo 127.0.0.1 >> echo -n "running surge client..." >> /bin/bash -c "cd /benchmarks/surge && ./Surge 2 100 1 192.168.0.1 5. >> echo -n "halting machine" >> m5 exit >> >> >> best. >> >> Tod >> --------- 원본 메일 --------- >> >> *보낸사람*: Zohreh Naghibi >> <[email protected]<http://hanmail/mail/[email protected]> >> > >> *받는사람* : gem5 users mailing list >> <[email protected]<http://hanmail/mail/[email protected]> >> > >> *날짜*: 2013년 12월 29일 일요일, 23시 40분 16초 +0900 >> *제목*: [gem5-users] Compile by Scripts >> >> Hi. >> I wonder whether there is any way to compile a workload by script or not. >> (in FS mode) >> Thanks in advance >> >> _______________________________________________ >> gem5-users mailing list >> [email protected]<http://hanmail/mail/[email protected]> >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> >> >> >> >> _______________________________________________ >> gem5-users mailing list >> [email protected]<http://hanmail/mail/[email protected]> >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > _______________________________________________ > gem5-users mailing list > [email protected]<http://hanmail/mail/[email protected]> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
