Assembler

Discussion of development and patch submission.
User avatar
omarsis81
Posts: 544
Joined: Thu 17 Dec, 2015 6:20 pm

Assembler

Postby omarsis81 » Thu 30 Jun, 2016 1:40 pm

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
Battler
Posts: 793
Joined: Sun 06 Jul, 2014 7:05 pm

Re: Assembler

Postby Battler » Thu 30 Jun, 2016 2:54 pm

The CPU dynamic recompiler already is written mostly in assembler.
SarahWalker
Site Admin
Posts: 1327
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Assembler

Postby SarahWalker » Thu 30 Jun, 2016 5:03 pm

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.
User avatar
omarsis81
Posts: 544
Joined: Thu 17 Dec, 2015 6:20 pm

Re: Assembler

Postby omarsis81 » Thu 30 Jun, 2016 5:59 pm

That´s what I thought, not worth on today's processors.
Thank you for your thoughts
User avatar
omarsis81
Posts: 544
Joined: Thu 17 Dec, 2015 6:20 pm

Re: Assembler

Postby omarsis81 » Tue 23 May, 2017 5:43 pm

SarahWalker wrote:I still want to get PCem running on something ARM based at some point.

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
Site Admin
Posts: 1327
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Assembler

Postby SarahWalker » Tue 23 May, 2017 6:40 pm

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.
User avatar
omarsis81
Posts: 544
Joined: Thu 17 Dec, 2015 6:20 pm

Re: Assembler

Postby omarsis81 » Tue 23 May, 2017 6:43 pm

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.


Ok, I just wanted to have an idea. Thanks! :D
I noticed the Pi is widely used for emulation
User avatar
leilei
Posts: 432
Joined: Fri 25 Apr, 2014 4:47 pm

Re: Assembler

Postby leilei » Tue 23 May, 2017 9:57 pm

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.

Return to “Development”

Who is online

Users browsing this forum: Bing [Bot], EluanCM and 1 guest