foft Posted April 15, 2015 Share Posted April 15, 2015 I'm trying to find the best 65816 c compiler. I gather there is the WDC one, a tcc based one and an lcc based one. Sadly no gcc or llvm. Which is the best of these? Are there others I've missed? Quote Link to comment Share on other sites More sharing options...
danwinslow Posted April 15, 2015 Share Posted April 15, 2015 I think CC65 can compile for 65816...its worth taking a look at in case my memory is accurate. Quote Link to comment Share on other sites More sharing options...
Island2Live Posted April 15, 2015 Share Posted April 15, 2015 Out of curiosity I took a look into the documentation of cc65 (v. 2.12.0). While the assembler ca65 does have support for the 65816 the compiler cc65 does not. There is an option named --cpu where you can set the target CPU ... but there is no hint to a 65816. Quote Link to comment Share on other sites More sharing options...
danwinslow Posted April 15, 2015 Share Posted April 15, 2015 I think there is a newer version ( 2.13 ) that is under new management, but no idea if he has added support. I think I was remembering the ca65 CPU setting as you mention. Quote Link to comment Share on other sites More sharing options...
ricortes Posted April 15, 2015 Share Posted April 15, 2015 Probably to tortuous of a path, Apple IIGS Orca C compiler. http://store.16sector.com/index.php?main_page=product_info&products_id=190 I mention it because I've heard it has been hacked on at least a couple of occasions to produce code for other platforms. Specifically when Id ported Wolfenstein 3d to the SNES they used that package to write the code. I've heard of one other instance where someone did something similar for a homebrew 65C816 but the details escape me at the moment. At least for console I/O, it wouldn't be too hard to hack. It would be a nice shortcut for code development since a lot of routines could be taken from output assembler source files and adapted to routines on the Atari side. I'm not sure what the state of IIGS emulators are. I'm assuming IIGS emulator + hack to get Orca outputting to Atari memory map would be ~a week project for a talented programmer. Quote Link to comment Share on other sites More sharing options...
UNIXcoffee928 Posted April 15, 2015 Share Posted April 15, 2015 From the sound of this video, the IIGS memory manager can be accessed directly though the GS Toolbox. I, also, had thought about using a IIGS to get familiar with the 65816. There are a few YouTube videos about learning assembly on the IIGS. The version 1.0 ROM IIGS systems are usually fairly cheap on ebay, since they are not as expandable (nobody wants them), but to just screw around with programming, they would probably be fine. The IIGS has a built in machine language monitor, so that's really all that you need to get started. There are a few emulators... The multi-platform emulator: KEGS, an online one: Virtual Apple II, and a Mac specific one. There's good info here on how to set things up. I had been an Amiga user, so my knowledge of what is the best OS version, compiler, etc. is limited. Maybe someone with more of a background in the IIGS can provide us with the exact details needed to setup a good IIGS development system. That Orca company seems pretty good, from the ad, above. Quote Link to comment Share on other sites More sharing options...
kenames99 Posted April 17, 2015 Share Posted April 17, 2015 try to find xa65 Quote Link to comment Share on other sites More sharing options...
foft Posted April 17, 2015 Author Share Posted April 17, 2015 Thanks for all the info. I wish there was a 65816 llvm backed, if only I had some more time! Perhaps in 2018:) Quote Link to comment Share on other sites More sharing options...
cdoty Posted June 4, 2015 Share Posted June 4, 2015 Which is the best of these? Are there others I've missed? The WDC is probably the most professional, and includes a powerful optimizer. And, it's available as a free download: http://65xx.com/Products/WDCTools/ They previously (2 years ago) were selling it for $35. Quote Link to comment Share on other sites More sharing options...
pirx Posted June 5, 2015 Share Posted June 5, 2015 mads? Quote Link to comment Share on other sites More sharing options...
phaeron Posted June 5, 2015 Share Posted June 5, 2015 MADS has some issues in 65816 mode. PEA requires non-standard syntax, auto REP/SEP tracking (OPT T+) only works with the exact values $10, $20, and $30, and there's no equivalent of LONGA/LONGI to manually force the M/X assembly modes without emitting code. I leave MADS in m8/x8 assemble mode with REP/SEP tracking off and just force immediate parameter sizes to word with .w suffixes. It works, but it's fragile. 1 Quote Link to comment Share on other sites More sharing options...
Kyle22 Posted June 5, 2015 Share Posted June 5, 2015 The WDC is probably the most professional, and includes a powerful optimizer. And, it's available as a free download: http://65xx.com/Products/WDCTools/ They previously (2 years ago) were selling it for $35. I get an error message when I try to download it, both in Firefox and IE. Quote Link to comment Share on other sites More sharing options...
JamesD Posted June 5, 2015 Share Posted June 5, 2015 I get an error message when I try to download it, both in Firefox and IE. It gave me an error but sent a link to the download via email. Quote Link to comment Share on other sites More sharing options...
cdoty Posted June 5, 2015 Share Posted June 5, 2015 From what I've read, TIDE (the included IDE) is broken, but the command line compilers work fine. Quote Link to comment Share on other sites More sharing options...
Kyle22 Posted June 5, 2015 Share Posted June 5, 2015 It gave me an error but sent a link to the download via email. Got it, Thanks. One note for users of download accelerators, don't use them on this page. I used DTA one click in Firefox, and it downloaded the .htm page. WDC's server limits to only one download per email address, so I had to request the download using another email address and then download it without DTA. Now I'll get twice as much spam from WDC. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.