Assembler
Assembler
Probably a dumb question, but here it goes: could we get significant performance benefit IF PCem would be written in assembler? I know it´s almost impossible because of its difficulty, but I ask anyway
Re: Assembler
The CPU dynamic recompiler already is written mostly in assembler.
- SarahWalker
- Site Admin
- Posts: 2054
- Joined: Thu 24 Apr, 2014 4:18 pm
Re: Assembler
You might get a very small gain? Like a couple of percent. Not at all worth the months, if not years, it would take to rewrite. And it would ruin any hopes of portability - I still want to get PCem running on something ARM based at some point.
Re: Assembler
That´s what I thought, not worth on today's processors.
Thank you for your thoughts
Thank you for your thoughts
Re: Assembler
Just out of curiosity, do you have a rough idea of what could be the maximum CPU PCem can achieve on a Raspberry Pi 3 at current stage? 386, 486/66 maybe?SarahWalker wrote:I still want to get PCem running on something ARM based at some point.
- SarahWalker
- Site Admin
- Posts: 2054
- Joined: Thu 24 Apr, 2014 4:18 pm
Re: Assembler
Nothing at the moment as I'm pretty sure it won't compile.
With whatever fixes are required... something 386SXy maybe? It's not going to be even remotely fast.
With whatever fixes are required... something 386SXy maybe? It's not going to be even remotely fast.
Re: Assembler
Ok, I just wanted to have an idea. Thanks!SarahWalker wrote:Nothing at the moment as I'm pretty sure it won't compile.
With whatever fixes are required... something 386SXy maybe? It's not going to be even remotely fast.
I noticed the Pi is widely used for emulation
Re: Assembler
I did try once. The code doesn't have enough generic paths to easily switch on (or at least, the x86 parts aren't def'd out enough) so it's not immediately compilable.
It's mostly the references to recompiler parts that occur outside the recompiler code at fault.
I too am also expecting something around a 386 interpreter. No Voodoo ever.
a pi3 booting a OS that's just a tiny linux that only runs pcem while housed in an old computer case would be something. though it'd need proper vga out and be able to make the same ambient/idling noises for it to really work.
It's mostly the references to recompiler parts that occur outside the recompiler code at fault.
I too am also expecting something around a 386 interpreter. No Voodoo ever.
a pi3 booting a OS that's just a tiny linux that only runs pcem while housed in an old computer case would be something. though it'd need proper vga out and be able to make the same ambient/idling noises for it to really work.