[rvm-research] Follow specific bytecode through compilation

View: New views
6 Messages — Rating Filter:   Alert me  

[rvm-research] Follow specific bytecode through compilation

by frederick.ryckbosch-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm trying to measure some characteristics about linked datastructures  
using JikesRVM.

I want to be able to find the assembler instructions generated for all  
getfield bytecodes.
Is there a way to tag instructions generated for getfield bytecodes  
during compilation ?

Basically I want to know if an instruction was generated for a  
getfield-bytecode or not, during assembly.

Any ideas ?

Thanks!
Frederick

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers

Re: [rvm-research] Follow specific bytecode through compilation

by Filip Pizlo-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Frederick,

Do you need to be able to get this to work with the opt compiler?

-Filip



On Jun 12, 2009, at 6:07 PM, Frederick Ryckbosch wrote:

> Hi,
>
> I'm trying to measure some characteristics about linked datastructures
> using JikesRVM.
>
> I want to be able to find the assembler instructions generated for all
> getfield bytecodes.
> Is there a way to tag instructions generated for getfield bytecodes
> during compilation ?
>
> Basically I want to know if an instruction was generated for a
> getfield-bytecode or not, during assembly.
>
> Any ideas ?
>
> Thanks!
> Frederick
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Jikesrvm-researchers mailing list
> Jikesrvm-researchers@...
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers

Re: [rvm-research] Follow specific bytecode through compilation

by frederick.ryckbosch-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Good question, I forgot to mention the question applies to the opt  
compiler.

Thanks,
Frederick


Op 13-jun-09, om 00:39 heeft Filip Pizlo het volgende geschreven:

> Hi Frederick,
>
> Do you need to be able to get this to work with the opt compiler?
>
> -Filip
>
>
>
> On Jun 12, 2009, at 6:07 PM, Frederick Ryckbosch wrote:
>
>> Hi,
>>
>> I'm trying to measure some characteristics about linked  
>> datastructures
>> using JikesRVM.
>>
>> I want to be able to find the assembler instructions generated for  
>> all
>> getfield bytecodes.
>> Is there a way to tag instructions generated for getfield bytecodes
>> during compilation ?
>>
>> Basically I want to know if an instruction was generated for a
>> getfield-bytecode or not, during assembly.
>>
>> Any ideas ?
>>
>> Thanks!
>> Frederick
>>
>> ------------------------------------------------------------------------------
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensing option that enables unlimited
>> royalty-free distribution of the report engine for externally facing
>> server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> _______________________________________________
>> Jikesrvm-researchers mailing list
>> Jikesrvm-researchers@...
>> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Jikesrvm-researchers mailing list
> Jikesrvm-researchers@...
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers

Re: [rvm-research] Follow specific bytecode through compilation

by frederick.ryckbosch-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Perhaps my question is not clear enough.

What I basically need is a map between bytecodes and assembler for the  
opt compiler.
I've seen articles where people added this to JikesRVM.

My question is: can anybody give me some pointers on how to do this ?
I have very little compiler expierence so I don't know where to start.

Thanks in advance !
Frederick



Op 13-jun-09, om 00:39 heeft Filip Pizlo het volgende geschreven:

> Hi Frederick,
>
> Do you need to be able to get this to work with the opt compiler?
>
> -Filip
>
>
>
> On Jun 12, 2009, at 6:07 PM, Frederick Ryckbosch wrote:
>
>> Hi,
>>
>> I'm trying to measure some characteristics about linked  
>> datastructures
>> using JikesRVM.
>>
>> I want to be able to find the assembler instructions generated for  
>> all
>> getfield bytecodes.
>> Is there a way to tag instructions generated for getfield bytecodes
>> during compilation ?
>>
>> Basically I want to know if an instruction was generated for a
>> getfield-bytecode or not, during assembly.
>>
>> Any ideas ?
>>
>> Thanks!
>> Frederick
>>
>> ------------------------------------------------------------------------------
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensing option that enables unlimited
>> royalty-free distribution of the report engine for externally facing
>> server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> _______________________________________________
>> Jikesrvm-researchers mailing list
>> Jikesrvm-researchers@...
>> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Jikesrvm-researchers mailing list
> Jikesrvm-researchers@...
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers

Re: [rvm-research] Follow specific bytecode through compilation

by Eliot Moss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Frederick -- I believe that in order to get the bytecode associated
with each machine instruction you mostly have to enable appropriate
verbose output from the Opt compiler -- so look into the flags that
control such output.

I'm sure someone else can clarify further :-) ....     Eliot Moss

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers

Re: [rvm-research] Follow specific bytecode through compilation

by David P Grove :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Frederick Ryckbosch <frederick.ryckbosch@...> wrote on 06/16/2009 09:10:24 AM:
>
> Perhaps my question is not clear enough.
>
> What I basically need is a map between bytecodes and assembler for the  
> opt compiler.
> I've seen articles where people added this to JikesRVM.

We do this for a subset of the machine instructions already in the opt compiler.  If an IR instruction is tagged as being a GC point or a PEI, then an entry is generated in the opt compiler's machinecode maps that allows the runtime system to map from the machinecode instruction back to the source level bytecode.  In theory, you could use this same mapping mechanism to get the maps you want by ensuring that the IR instructions that were generated from the bytecode of interest were tagged as needing machine code map entries.   Take a look at OptCompiledMethod and OptMachineCodeMap.

We don't do it for all instructions because of (a) space overheads for the mapping info and (b) as the optimizer does various transformations it's not always totally clear what bytecode instruction should be associated with a given IR/machinecode instruction.

--dave

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers