Re: [rvm-research] Building jikes statically

Eliot Moss <[email protected]>
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <[email protected]>
On 7/9/2014 1:58 AM, Nisha nisha wrote:
> Hmm, what kind of simulator?  I hope it's one that deals with dynamically
> generated code since JikesRVM compiles Java to native code *always* (sometimes
> with an optimizing compiler but generally first with a non-optimizing one).

>  > We have a in-house simulator. Currently I am not able to run JikesRVM on it, I guess if I am able
> to build it statically I can run it successfully.
> I tried mentioning the CFlags in classpath.xml, but it didn't compiled statically.

Sounds to me that your simulator needs to support more functionality.

> I have successfully run JikesRVM on (some of) the DaCapo benchmarks under
> a valgrind tool, so valgrind handles all this right
>
> Valgrind doesn't solves my problem. So is it possible to run JikesRVM on other binary instrumented
> tools like PIN? I tried running it on PIN, but the execution doesn't terminates and the itrace
> output seems to be buggy. Do you have any idea how to run JikesRVM on PIN successfully?
>
> "JikesRVM" is normally a script that sets up command
> line flags, etc
>
>  > What do you mean by this can you please tell this in more detail? As far as I know this is not
> forking any child process or calling any exec.

You may well be speaking of the runner binary, which of course needs a substantial
list of argument to point to the Jikes RVM image to load, etc.  I am speaking of the
usual wrapper script that sets up those arguments then invokes the runner.

But what I am saying is that I do not see how it is that having a statically
linked runner is going to get you very far.  Let me put it this way: What
functionality is missing from your simulator that makes a statically linked
runner desirable / necessary?  I am guessing that other things about the
way Jikes RVM works will encounter the same lack of functionality but that
static linking won't solve the problem.

There are other x86 simulators out there such as bochs, marss86, and ptlsim,
and they are probably capable enough to run Jikes RVM.

Regards -- EM

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.