Jump to content

New community dev tool uploaded: cc64 X16


Recommended Posts

cc64 X16

View File

cc64 is a small-C compiler, written in Forth, targeting the 6502 CPU.

It's hosted on the C64, on the C16 with 64k RAM, and now on the X16.
Runtime targets are available for all 3 platforms, on each host, allowing cross-compilation.

The code lives at https://github.com/pzembrod/cc64.
It's licensed under the 2-clause BSD license: https://github.com/pzembrod/cc64/blob/master/COPYING

See https://github.com/pzembrod/cc64/blob/master/Usage.md for usage.

See https://github.com/pzembrod/cc64/blob/master/C-lang-subset.md for details about the supported subset of C.

Released under the 3 clause BSD license.


 

  • Like 4
  • Thanks 2
Link to comment
Share on other sites

Downloaded it now, and tried it out for the first time.

It's working! A real accomplishment.

I have skimmed the instructions you published. Do I understand correctly that there are no standard libraries? We may need to develop such libraries, for instance to call Kernal routines.

Link to comment
Share on other sites

13 hours ago, kktos said:

I thought about asking why in forth.... then I saw your explanations 😉
For fun.

Well, fun was and is the reason for doing cc64 in the first place. And Forth is and continues to be fun.

But the original reason for using Forth was that it was the best high level language I could find on the C64 back then - powerful, practical, and producing very compact code.

13 hours ago, kktos said:

That, I can understand :):)

😊

13 hours ago, kktos said:

Viel Spass.

Danke, gleichfalls!

Link to comment
Share on other sites

5 hours ago, Stefan said:

Downloaded it now, and tried it out for the first time.

It's working!

Glad to hear!

5 hours ago, Stefan said:

A real accomplishment.

Thank you!

5 hours ago, Stefan said:

I have skimmed the instructions you published. Do I understand correctly that there are no standard libraries?

Yes, that is correct ... yet.

5 hours ago, Stefan said:

We may need to develop such libraries, for instance to call Kernal routines.

Absolutely! The kernal-io-c64.c and kernal-io-c16.c files might serve as an example or a starting point. But going forward there should be at least a basic subset of the C standard library.

  • Like 1
Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

Please review our Terms of Use