Jump to content

cc64 X16 0.9

   (2 reviews)

1 Screenshot

About This 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.

What's New in Version 0.9   See changelog


Main topic of v0.9 is compile speed. With the help of a simple profiler
I was able to optimize a few performance hotspots in the scanner and in
the scanner/parser interface, resulting in more than 20% compile time
saved or more than 30% speed gained.

Also, Source code listing during compile can now be switched on and off.
Default is off; it turns out that switching off listing decreases
compile time by another ~10%.

For the X16 another v0.9 feature is that it runs both on the R38 ROM+emulator
and on R39, as it is based on VolksForth 3.9.3 which has the same property.


  • Like 3
  • Thanks 1

User Feedback

Join the conversation

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



   1 of 1 member found this review helpful 1 / 1 member

Well, this is a paradigm changer! Now we can compile C code directly on the Commander, no need for external compilers. 



  • Like 1
  • Thanks 1
Link to review


What 👇(TomXP411) said!  Amazing!  Thanks so much for this.  Looking forward to hammering on it, and to see how far it will take the system.

  • Like 1
Link to review
  • Create New...

Important Information

Please review our Terms of Use