It is currently Mon Nov 20, 2017 12:20 pm

All times are UTC - 7 hours



Forum rules


Related:



Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Need a better snes sdk
PostPosted: Mon Sep 11, 2017 7:01 pm 
Offline
User avatar

Joined: Mon Sep 05, 2011 5:56 pm
Posts: 287
I want to have a snes sdk,support c language is better,
I use "pvsneslib", but I find many bug and limit,

So is there a better snes sdk I can use?
Need help.


Top
 Profile  
 
PostPosted: Mon Sep 11, 2017 8:46 pm 
Online
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 1823
Location: DIGDUG
I do too.

I suggest learning ASM.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
PostPosted: Tue Sep 12, 2017 1:33 am 
Offline

Joined: Tue Oct 06, 2015 10:16 am
Posts: 581
Indeed, it doesn't exist. There is no acceptable C compiler for SNES, and pvsneslib is pretty much the only platform library.


Top
 Profile  
 
PostPosted: Mon Oct 09, 2017 5:29 pm 
Offline

Joined: Mon Oct 09, 2017 5:27 pm
Posts: 1
I want to develop video games for snes, but when reading your comment I think twice, what kind of limits and errors does the PVSnesLib library have?


Top
 Profile  
 
PostPosted: Mon Oct 09, 2017 7:00 pm 
Online
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 1823
Location: DIGDUG
PVSnesLib appears to be (I don't know anything, but from 10 minutes of looking at github)...

816-tcc c compiler, combined with wla assembler, some graphics converters, a brr converter, impulse tracker etc etc.

But the PVSnesLib itself looks like it might be very good. But, poorly documented... so, it would take me months just to get "hello world" going. Possibly.

I'd say it's worth looking into, but a bit complex.


Quote from documentation...
"* to do *"
Last modified: 2012/05/26


It looks like Kung Fu Kirby helped debug the code. Maybe he knows how it works.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
PostPosted: Tue Oct 10, 2017 7:25 am 
Offline

Joined: Tue Oct 06, 2015 10:16 am
Posts: 581
Yesterday I was bored and read up on if I could get an EU grant to port LLVM there. Surprisingly, it would have good chances of passing, but the bureucracy required is too much to bother.


Top
 Profile  
 
PostPosted: Wed Oct 11, 2017 10:55 pm 
Offline
Site Admin
User avatar

Joined: Mon Sep 20, 2004 6:04 am
Posts: 3484
Location: Indianapolis
I'm curious if anyone has compared 816-tcc to CC65 in 6502 mode? Obviously, native would be better. But how much better, and if you write the busiest parts in assembly, is it still enough to matter?


Top
 Profile  
 
PostPosted: Wed Oct 11, 2017 11:53 pm 
Offline

Joined: Tue Oct 06, 2015 10:16 am
Posts: 581
816-tcc's performance is irrelevant as long as it has serious codegen and crashing bugs. It generates plain wrong code for some very simple cases, and it crashes in multiple places, for example when using macros.


Top
 Profile  
 
PostPosted: Thu Oct 12, 2017 5:25 am 
Offline
User avatar

Joined: Tue Apr 05, 2016 5:25 pm
Posts: 146
Pvsneslib was the first thing I toyed with when I was getting into homebrew. The library's API was lacking in places and I wasn't super impressed with tcc. Well, I was impressed in that "hey, I can write C code and get results on-screen quickly". I was less impressed with the performance and that tcc didn't support short circuiting in if statements, which is kind of a core behavior that I would have expected to be there, and would have improved performance anyway.

_________________
SNES NTSC 2/1/3 1CHIP | serial number UN318588627


Top
 Profile  
 
PostPosted: Thu Oct 12, 2017 10:08 pm 
Offline
Site Admin
User avatar

Joined: Mon Sep 20, 2004 6:04 am
Posts: 3484
Location: Indianapolis
calima wrote:
816-tcc's performance is irrelevant as long as it has serious codegen and crashing bugs. It generates plain wrong code for some very simple cases, and it crashes in multiple places, for example when using macros.


Yikes, I didn't know that. I'm not actively doing any SNES stuff now, but might return to it eventually. So I'm bringing all questions and no answers to this thread, and here is another one.

Has anyone tried WDC's compiler? http://wdc65xx.com/WDCTools Seeing discussion (on 6502.org mostly) of it over recent years, it was $400, then it was $40, then it was unavailable, and now it's apparently free for legit WDC chips (which the SNES CPU is!). I was able to download it just now, the installer is dated 6-30-2017. The compiler, assembler, and linker EXEs are dated 2006. I've seen some references to there being a trial version with limits, but if this a trial version, it doesn't say anything about it (that I've found yet). I didn't actually try to build anything with it. It might be worth taking a look at.


Top
 Profile  
 
PostPosted: Fri Oct 13, 2017 1:38 am 
Offline

Joined: Wed May 09, 2007 12:45 pm
Posts: 48
calima wrote:
Yesterday I was bored and read up on if I could get an EU grant to port LLVM there. Surprisingly, it would have good chances of passing, but the bureucracy required is too much to bother.

There has been some experiments around LLVM and (S)NES.


Top
 Profile  
 
PostPosted: Fri Oct 13, 2017 2:50 pm 
Offline
User avatar

Joined: Tue Apr 05, 2016 5:25 pm
Posts: 146
Hmm, not sure I'd trust anything that involves WLA as an implementation detail, at least not until its 65816 support receives some bugfixes.

_________________
SNES NTSC 2/1/3 1CHIP | serial number UN318588627


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: Google Adsense [Bot], vanfanel and 10 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
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group