Discussion:
[gem5-users] gem5 SE, binary which takes a file as an input
Jasmin Jahic
2018-05-30 11:59:02 UTC
Permalink
Dear gem5 users,

I have one challenge with gem5 and I hope you can help.

Running the gem5 in SE is no problem when there is one binary file. But how
would it be possible for gem5 to run a binary which takes as an input a
file?

For example, in terminal, I would type:
./binary < file.txt

Best regards,
Jasmin JAHIC
TungHoang_GMail
2018-05-30 17:50:10 UTC
Permalink
Jasmin

You can use pass "file.txt" via -o | --options of se.py scripts. For
example ... --cmd ./binary --options file.txt

/T
Post by Jasmin Jahic
Dear gem5 users,
I have one challenge with gem5 and I hope you can help.
Running the gem5 in SE is no problem when there is one binary file.
But how would it be possible for gem5 to run a binary which takes as
an input a file?
./binary < file.txt
Best regards,
Jasmin JAHIC
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Jasmin Jahic
2018-05-31 13:56:37 UTC
Permalink
Binary -i file.txt worked. Thank you.



Gesendet von meinem Windows 10 Phone

Von: TungHoang_GMail
Gesendet: Mittwoch, 30. Mai 2018 19:50
An: gem5 users mailing list; Jasmin Jahic
Betreff: Re: [gem5-users] gem5 SE, binary which takes a file as an input

Jasmin

You can use pass "file.txt" via -o | --options of se.py scripts. For example ... --cmd ./binary --options file.txt

/T
On 05/30/2018 04:59 AM, Jasmin Jahic wrote:
Dear gem5 users, 

I have one challenge with gem5 and I hope you can help.

Running the gem5 in SE is no problem when there is one binary file. But how would it be possible for gem5 to run a binary which takes as an input a file?

For example, in terminal, I would type:
./binary < file.txt

Best regards,
Jasmin JAHIC

Loading...