EmuNewz Network
dynarec compiler - Printable Version

+- EmuNewz Network (https://www.emunewz.net/forum)
+-- Forum: PSP Emulation (https://www.emunewz.net/forum/forumdisplay.php?fid=191)
+--- Forum: JPCSP Official Forum (https://www.emunewz.net/forum/forumdisplay.php?fid=51)
+---- Forum: General discussion (https://www.emunewz.net/forum/forumdisplay.php?fid=57)
+---- Thread: dynarec compiler (/showthread.php?tid=77158)



dynarec compiler - sum2012 - 08-17-2012

What is dynarec compiler in option ?
If I disable it,all demo and games are not work.
HLE Function sceKernelCreateThread(ThreadManForUser) not activated by default for Firmware Version xxx
HLE Function sceKernelStartThread(ThreadManForUser) not activated by default for Firmware Version xxx
HLE Function hleKernelExitThread(ThreadManForUser) not activated by default for Firmware Version xxx


Attach Cube sample Rev2687 log.


RE: dynarec compiler - hyakki - 08-17-2012

Disabling it causes the emulator to run in interpreter mode, very slow, you should never need to disable that option.
dynarec is the recompiler converts psp instructions to pc instructions on the fly, usually very efficiently it might recognize a sequence of instructions and rewrite them more efficiently for the pc to understand ..etc
Where interpreter has no shortcuts it's probably more accurate but will be slow.
You can take a look at compiler.xml to get a better idea what dynarec does.


RE: dynarec compiler - sum2012 - 08-17-2012

The probrem is not work.Not "very slow"
(08-17-2012, 12:47 PM)hyakki Wrote: Disabling it causes the emulator to run in interpreter mode, very slow, you should never need to disable that option.
dynarec is the recompiler converts psp instructions to pc instructions on the fly, usually very efficiently it might recognize a sequence of instructions and rewrite them more efficiently for the pc to understand ..etc
Where interpreter has no shortcuts it's probably more accurate but will be slow.
You can take a look at compiler.xml to get a better idea what dynarec does.




RE: dynarec compiler - icecoffemix - 08-17-2012

what? you should use google translate instead. probably it will be more readable.


RE: dynarec compiler - montcer9012 - 08-17-2012

(08-17-2012, 01:12 PM)sum2012 Wrote: The probrem is not work.Not "very slow"
And don't work for the same reason hyakki told you.

PSP and PC are similar cause both have similar pieces to work; however those pieces are not the same on a PC and PSP and for that reason the orders that the PSP needs to work have to be "translated" on the PC so it know what to do.


RE: dynarec compiler - gid15 - 08-20-2012

(08-17-2012, 12:02 PM)sum2012 Wrote: What is dynarec compiler in option ?
If I disable it,all demo and games are not work.
HLE Function sceKernelCreateThread(ThreadManForUser) not activated by default for Firmware Version xxx
HLE Function sceKernelStartThread(ThreadManForUser) not activated by default for Firmware Version xxx
HLE Function hleKernelExitThread(ThreadManForUser) not activated by default for Firmware Version xxx


Attach Cube sample Rev2687 log.
That's true. Since the syscall instruction has been implemented with a new Java reflection mechanism, the interpreter is no longer working.
As the interpreter support has been discontinued for several years now, the option to disable the compiler should be removed. The compiler should always be enabled.


RE: dynarec compiler - sum2012 - 08-20-2012

Good explanation
(08-20-2012, 07:51 AM)gid15 Wrote: That's true. Since the syscall instruction has been implemented with a new Java reflection mechanism, the interpreter is no longer working.
As the interpreter support has been discontinued for several years now, the option to disable the compiler should be removed. The compiler should always be enabled.