This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request for testing Compiler settings
#11
(01-16-2011, 06:42 PM)hlide Wrote: I guess you have some "Step" methods to call periodically. The longest the compiled block is the slowest responsiveness is. It's kinda logical.

The calls to "Step" methods are left unchanged, it's just that the Java JIT doesn't like to compile large Java methods.
e.g. with 3000: the Jpcsp Compiler is compiling a mips function at 0x8000000 into a single Java method:
Code:
public static call800000() {
   instr1
   instr2
   ...
   instr1234
}
but the Java JIT usually doesn't compile this method due to its size.

And with 50: the Jpcsp Compiler splits the Java method in smaller ones having max. 50 MIPS instr:
Code:
public static call800000() {
    call800000_50()
    call800000_100()
    call800000_150()
    ...
    call800000_1200()
}
public static call800000_50() {
    instr1
    instr2
    ...
    instr50
}
public static call800000_100() {
    instr51
    instr52
    ...
    instr100
}
The java JIT compiler usually decides to compile the smaller methods, resulting in a faster code execution even with the overhead of the additional method calls...
There is probably some threshold in the JIT compiler based on the code size...
Reply


Messages In This Thread
Request for testing Compiler settings - by gid15 - 01-15-2011, 09:15 PM
RE: Request for testing Compiler settings - by gid15 - 01-16-2011, 09:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)