I assume you are talking about syscall emulation.

An interpreted language like Python simply uses the /usr/bin/python executable 
as executable, and takes the scripts as arguments.


Therefore, there is nothing, in principle, that prevents it from being run.


In practice however, you must of course ensure that all required syscalls are 
implemented, and that dynamic libraries load properly.


I've just tried it out a Python hello world with SE python3 in Ubuntu 18.10 and 
it failed with:


/usr/bin/python3: error while loading shared libraries: libexpat.so.1: cannot 
open shared object file: No such file or directory


so you'd have to debug that.


Full system will just work of course.

________________________________
From: gem5-users <gem5-users-boun...@gem5.org> on behalf of Seeley, Justin P 
<jpsee...@wpi.edu>
Sent: Friday, April 12, 2019 2:44:31 AM
To: gem5-users@gem5.org
Subject: [gem5-users] Feasibility of Using gem5 on Interpreted Languages

Hello Everyone,

I am pretty new to gem5. I am interested in the feasibility of running gem5 on 
scripts for an interpreted language and as I understand it, gem5 requires an 
input binary not an interpreter running a script.

I was wondering if anyone has had any experience in using gem5 with R, or am I 
running up against a wall? Languages like Python look to have some external 
software to act as a static compiler for python, but I have not seen anything 
similar for R.

Best,
Justin
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to