pzembrod 33 Posted January 19 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. Submitter pzembrod Submitted 01/19/21 Category Dev Tools 2 1 Quote Share this post Link to post Share on other sites
desertfish 291 Posted January 19 This is wizardry. 1 Quote Share this post Link to post Share on other sites
Stefan 77 Posted January 20 I'm really looking forward to try this out! Very nice achievement. 1 Quote Share this post Link to post Share on other sites
kktos 14 Posted January 20 I thought about asking why in forth.... then I saw your explanations For fun. That, I can understand :):) Viel Spass. Quote Share this post Link to post Share on other sites
Stefan 77 Posted January 20 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. Quote Share this post Link to post Share on other sites
pzembrod 33 Posted January 20 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! Quote Share this post Link to post Share on other sites
pzembrod 33 Posted January 20 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. Quote Share this post Link to post Share on other sites