View unanswered posts | View active topics It is currently Mon Feb 18, 2019 6:26 pm



This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
bsnes on ppc/ppc64? 
Author Message
Hazed

Joined: Tue Dec 07, 2004 10:24 am
Posts: 68
Reply with quote
Post bsnes on ppc/ppc64?
Hi,

I am currently building the RPM fusion package for i386 and x86_64 only, since that's all libco seems to support. But, according to the thread about longsoon support, it was possible to build bsnes on MIPS. My question is, would it be possible to make it just work on ppc/ppc64? Does the SJLJ libco is the one that comes with bsnes, or is a port of some sort? Cheers!


Sun Feb 22, 2009 12:46 pm
Profile
Reply with quote
Post 
SJLJ should work on pretty much any Unix, but of course it should be tested to verify.

Vas Crabb also wrote PPC32 and PPC64 ports of libco in GNU as. If you check the readme, it has compilation instructions. Richard Bannister uses these ASM version on OS X successfully, but it's possible that Linux/PPC uses a different ABI.


Sun Feb 22, 2009 1:01 pm
Hazed

Joined: Tue Dec 07, 2004 10:24 am
Posts: 68
Reply with quote
Post 
OK, I'll try to give it a go then.


Sun Feb 22, 2009 1:02 pm
Profile
Hazed

Joined: Tue Dec 07, 2004 10:24 am
Posts: 68
Reply with quote
Post 
Without using the assembly, bsnes did build correctly on ppc/ppc64. When it comes to using the said assembly, I found this:
Quote:
as -arch ppc -force_cpusubtype_ALL libco.ppc.s

How to integrate it into the build process?


Sun Feb 22, 2009 1:39 pm
Profile
Reply with quote
Post 
You'd have to change a lot of stuff to add that to the current build process. Richard creates his own Makefile using his IDE of choice.

My goal was to have all of libco build just by compiling the libco.c file, with no need to manually specify libco targets. I hope to get the ppc / ppc64 GNU as files ported so that they are inside .c files using inline assembly in the future.

Microsoft is also screwing me on Win64 / Visual C++, their compiler doesn't support inline 64-bit ASM, so I have to fall back on cothreads there to make this "pure C library" idea work.


Mon Feb 23, 2009 1:48 pm
Hazed

Joined: Tue Dec 07, 2004 10:24 am
Posts: 68
Reply with quote
Post 
I see. Since I have no skills to do that, I'll patiently wait for your implementation, building with sjlj in the meantime.

ETA: I got some test results for ppc (not mine though, but fellow user's):
Quote:
Seems to work ok, but my ibook is too slow to tell if the audio is working or not. Game and graphics seem fine.


Mon Feb 23, 2009 2:08 pm
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software.