Re: [rvm-research] Inserting Assembly into Jikes

David P Grove <[email protected]>
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <OF065E6C9C.EA6C2179-ON85257C0E.00405716-85257C0E.0040AC4C@us.ibm.com>


Claire Murphy <[email protected]> wrote on 10/23/2013 09:35:25 PM:
>
> My name is Claire, and I'm part of a team of students from Harvey
> Mudd College.
>
> We are working with Jikes RVM and need to insert a new assembly
> instruction directly into the host machine--similar to calling asm
> goto("(instruction)") in C. I've looked at the Jikes source code and
> I suspect the magic functions and the emit(instruction) functions in
> the Assembler file are what I'm looking for, but I'm unclear on how
> they work and whether they do what I want. Can you help?
>
> We literally want a faster equivalent of using JNI to insert C,
> which inserts assembly.
>

Hi,

	If a fast path from Java to C is what you are looking for, then the
quickest way to get it working is using VM.sysCall.  (Injects a call to a C
function that you write in the bootimage).

	See org.jikesrvm.runtime.SysCall.java and follow the pattern that is
there for the other sysCalls.

--dave

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk

_______________________________________________
Jikesrvm-researchers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
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.