To compile C code on C64 you should try Oscar64. Generated code is up to 6 times faster than with cc65.
OK, nice. Will definitely take a look. Thanks for the tip, much appreciated