6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Sep 20, 2024 2:35 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: The WDC C compiler?
PostPosted: Sat Feb 16, 2019 5:00 pm 
Online
User avatar

Joined: Wed Feb 14, 2018 2:33 pm
Posts: 1467
Location: Scotland
Now that it's free, has anyone used the WDC C compiler or compared it to CC65?

http://www.westerndesigncenter.com/wdc/tools.cfm

I've not looked yet as I don't have any MS windows systems to run it under, but a quick look through the manual shows command-line operation (in addition to their IDE), so it might run under DOSBOX - if anyone knows I'd appreciate a heads-up before I give it a go.

Cheers,

-gordon

_________________
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/


Top
 Profile  
Reply with quote  
 Post subject: Re: The WDC C compiler?
PostPosted: Sat Feb 16, 2019 6:36 pm 
Offline

Joined: Mon May 21, 2018 8:09 pm
Posts: 1462
A quick look through the manual shows one big advantage over cc65 - it supports floating-point. Relative performance on other operations will have to be tested; it doesn't look like it does any great heroics to optimise the code it produces, though it does allow the programmer to put local variables in zero page using the 'register' keyword.

I get the impression that the tools are designed to be run from their TIDE environment, which is a Windows application. The tools themselves will probably be Windows console programs, not DOS, so should be run from cmd.exe (or MinGW or PowerShell). If you don't have Windows, try WINE.


Top
 Profile  
Reply with quote  
 Post subject: Re: The WDC C compiler?
PostPosted: Sun Feb 17, 2019 12:38 am 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1005
Location: Canada
FP is big though. I have had some success running my latest board up to over 19mHz, so ultimate optimization may not be a big problem. If ultimate in space or speed is required, just code the crucial routines in assembler and give 'em a call when you need them.

_________________
Bill


Top
 Profile  
Reply with quote  
 Post subject: Re: The WDC C compiler?
PostPosted: Sun Feb 17, 2019 3:39 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
There is allegedly a program size limit with the free version but it I think think its fairly generous and can be bypassed by compiling lots of small modules instead of fewer huge ones.

I tried to by a full copy a couple of years ago when the SXB boards came out but its now only available for big corporate users.

A shame really.

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 20 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: