SNES C compiler, without all the work

Discussion of hardware and software development for Super NES and Super Famicom. See the SNESdev wiki for more information.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
Post Reply
User avatar
cdoty
Posts: 24
Joined: Tue Jan 03, 2006 7:17 am
Location: Houston TX
Contact:

SNES C compiler, without all the work

Post by cdoty »

It looks like Western Design Center is re-releasing their 65816 C compiler, and they've reduced the price to $40:

http://65xx.com/65xx-store-2/65xxtools/

That sounds a bit expensive; but from what I remember reading, this is based on the Zardoz compiler: http://web.archive.org/web/199707201247 ... /cdev.html which was used to code for the SNES.

I played around with the free version they released several years ago, and it also has a really good optimizer and is easier than the SNES C compiler to use.

They've pulled it down to fix something. WDC stated in an e-mail that they expect it to be back up by next week.
Last edited by cdoty on Wed Jul 31, 2013 6:21 pm, edited 1 time in total.
User avatar
Bregalad
Posts: 8055
Joined: Fri Nov 12, 2004 2:49 pm
Location: Divonne-les-bains, France

Re: SNES C compiler, without all the work

Post by Bregalad »

Do they use a software stack for auto variables using lda (),Y addressing ? If yes, then I won't care.

ALSO :
The 65xxTools is NOT for resale or reverse engineering of our technology in any form and is NOT provided for development of commercial products that use non–WDC 65xx processors in Core or Chip form.
User avatar
cdoty
Posts: 24
Joined: Tue Jan 03, 2006 7:17 am
Location: Houston TX
Contact:

Re: SNES C compiler, without all the work

Post by cdoty »

Bregalad wrote: ALSO :
The 65xxTools is NOT for resale or reverse engineering of our technology in any form and is NOT provided for development of commercial products that use non–WDC 65xx processors in Core or Chip form.
According to the Ricoh 5A22 wiki page, it's based on the GTE version of the WDC65186:
http://en.wikipedia.org/wiki/Ricoh_5A22

And, the GTE version was second sourced from WDC:
http://en.wikipedia.org/wiki/WDC_65816/65802

I would think that counts as a WDC 65xx core.
tepples
Posts: 22705
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: SNES C compiler, without all the work

Post by tepples »

Bregalad wrote:Do they use a software stack for auto variables using lda (),Y addressing ?
I don't know. But what I do know is that that's a workaround for 6502 limits and not quite as necessary on the 65816 for two reasons. For one thing, zero-page instructions are no longer hardcoded to $000000-$0000FF; instead, they're indexed from the D register, which can be used as a frame pointer like x86 BP. For another, two of the zero-page addressing modes d and (d),Y have variants that index from the stack pointer S instead of D: d,S and (d,S),Y.
User avatar
cdoty
Posts: 24
Joined: Tue Jan 03, 2006 7:17 am
Location: Houston TX
Contact:

Re: SNES C compiler, without all the work

Post by cdoty »

Bregalad wrote:Do they use a software stack for auto variables using lda (),Y addressing ? If yes, then I won't care.
From the Zardoz page:

Uses direct page as stack frame making all automatic variables and arguments pseudo-registers.

Zardoz supposedly was used to develop games for the SNES; which is what the WDC compiler and linker are based on.
User avatar
whicker
Posts: 228
Joined: Sun Dec 13, 2009 11:37 am
Location: Wisconsin

Re: SNES C compiler, without all the work

Post by whicker »

cdoty wrote:It looks like Western Design Center is re-releasing their 65816 C compiler, and they've reduced the price to $40:
That sounds a bit expensive;
$40 may or may not provide value, depending on the merits of the product itself (how useful it is).

it also depends on how one values his or her time... what do you pay yourself per hour, what do you want to get done, what do you want to focus on, what is your tolerance level for reinventing everything?

Would the compiler be useful only for new projects? Or would compiled code (or an intermediate file) be able to be easily inserted into existing code for things like patches, romhacks, and translations? Does the compiler support assembly code for sections that really have to be?

Things like this determine the value of a product if it's going to be for sale.
Shiru
Posts: 1161
Joined: Sat Jan 23, 2010 11:41 pm

Re: SNES C compiler, without all the work

Post by Shiru »

$40 is cheap. The question is how it compares to existing free tools (tcc-816, snesc), code efficiency-wise. I somehow think it is not very effective, maybe about the same, just because it is old.
Post Reply