Repository navigation
Since 1.0.1, the suite has grown from a C compiler with an assembler and linker into a full MEGA65 development environment. New tools cover the whole working cycle: C and assembly linters (cl45, al45) and an assembly formatter (af45) for checking code, a source-level debugger that runs programs in xemu (dbg45), and deploy45 for sending programs to a real MEGA65 or Ultimate 64. For a game's assets there are font45 for fonts, tune45 for writing and importing music, and pack45 for compressing data, and a language server ties these into VS Code. The C language itself now handles much larger programs. Code overlays and far functions let a program grow beyond bank 0, while far and near pointers and bank-placed variables reach all of the machine's memory. cc45 also gained fixed-point and wide integer types, packed booleans, object-style structs with methods and inheritance, and direct calls into ROM routines. basic45 changed most: it now compiles BASIC 65 programs to machine code, either whole or one procedure at a time beside the interpreter, and converts programs written for older Commodore BASICs.
The standard library now covers most of the hardware: graphics through cc65's TGI, sprites, full-colour text, raster interrupts, a tune player, and disk files that finally behave as C expects, including REL files. Much of it is rewritten in assembly, so programs are both smaller and faster, and wide coverage of cc65's API makes existing code easier to port. Code generation improved steadily over the same period. GCC's torture tests went from about 316 passing to 551 in both calling conventions, and every one of the 1211 runtime tests now runs in xemu. The toolchain needs only a C++ compiler and make to build, and it ships as prebuilt Linux and macOS archives and Docker images. A few changes break old usage, chiefly the -f style of optimization flags, the rename of cvt_asm to asmCvt45, and the removal of the old graphics framework and of unimplemented headers.
The full list of changes is in CHANGELOG.md. tune45 includes libresidfp, which is licensed GPL-2.0-or-later.