Page 1 of 1

New community dev tool uploaded: cc64 X16

Posted: Tue Jan 19, 2021 10:45 pm
by pzembrod



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.

See https://github.com/pzembrod/cc64/blob/master/Lib-reference.md for the the LibC subset that comes with cc64, plus the lib's deviations from the standard.






 

New community dev tool uploaded: cc64 X16

Posted: Tue Jan 19, 2021 11:32 pm
by desertfish

This is wizardry.


New community dev tool uploaded: cc64 X16

Posted: Wed Jan 20, 2021 5:43 am
by Stefan

I'm really looking forward to try this out! Very nice achievement.


New community dev tool uploaded: cc64 X16

Posted: Wed Jan 20, 2021 8:20 am
by kktos

I thought about asking why in forth.... then I saw your explanations ?

For fun.

That, I can understand :):)

Viel Spass.

 


New community dev tool uploaded: cc64 X16

Posted: Wed Jan 20, 2021 4:46 pm
by Stefan

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.


New community dev tool uploaded: cc64 X16

Posted: Wed Jan 20, 2021 10:08 pm
by pzembrod


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!


New community dev tool uploaded: cc64 X16

Posted: Wed Jan 20, 2021 10:21 pm
by pzembrod


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.


New community dev tool uploaded: cc64 X16

Posted: Mon Apr 05, 2021 10:38 pm
by pzembrod

Update: I haven't created a new release yet, but I would encourage folks to give the current v0.9-dev version a try, as it features a significant compile speed increase:

https://github.com/pzembrod/cc64/blob/v0.9-dev/cc64-x16files.zip

https://github.com/pzembrod/cc64/blob/v0.9-dev/cc64-x16files-sdcard.zip

 


New community dev tool uploaded: cc64 X16

Posted: Sat Jun 05, 2021 1:44 pm
by pzembrod

Update: v0.9 is out, as you may have noticed, and I have started work on a standard library, based on http://pdclib.rootdirectory.de/, in the v0.10-dev branch.