Jump to content

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

Released

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.


try_it

No
  • Like 1
  • 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.

Guest

TomXP411

   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

Share this review


Link to review
evlthecat

  

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

Share this review


Link to review
×
×
  • Create New...

Important Information

Please review our Terms of Use