Welcome, Guest. Please login or register.

Author Topic: C For C64  (Read 5740 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline drHirudo

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 539
    • Show all replies
    • http://hirudov.com
Re: C For C64
« on: July 19, 2010, 06:48:59 PM »
For me the best compiler for 6502 coding is CC65.

Coding directly on the C64 in C is very hard. On 1 MHz it is slow, the header files needs to be installed on one place and the memory is low for optimizations. Better use the CC65 crosscompiler and compile on much faster machine, then run and test the compiled code on the original C64. I have developed games on Amiga for C64 using the CC66 compiler (in C and Assembler), then packed them with cruncher like puchrunch and ran them. You can not compile and crunch executables easily on 1MHz 64 KB machine. I am not saying it is impossible. It's simply harder, slower, error prone, lacking serious tools and sometimes impractical to code in C directly on C64.