KickC 0.8.3 Adds an Atari XL/XE Target
On 26 September 2020 Jesper Gravgaard announced on AtariAge that KickC 0.8.3 directly supports the Atari 8-bit XL/XE platform. KickC is his C compiler that produces optimized 6502 assembly. It already supported Commodore machines and uses the KickAssembler segment format for its linker files.
What the Atari target includes
The release ships header files and linker files for the XL/XE chipset, so registers and OS structures can be used by name from C, plus a few example programs. The author said the examples worked in emulators and on real hardware: he tested them on a 130XE and an 800XL using an UNOcart A8.
A KickC target is defined by a JSON file (CPU, character encoding, file extension, emulator to launch) together with a linker file in KickAssembler segment format and the header and library files. All of these are plain text in the binary release (/target, /include, /lib), so users can change them or add new platforms. When someone asked about the Atari Lynx, the author said the Lynx CPU is almost identical to the already-supported 65C02 and that a target would mainly need a linker configuration and headers.
Community reaction
Code size impressed early testers. One user wrote two tiny demos that compiled to well under 100 bytes, and later a Player/Missile example in graphics mode 7 compiled to an executable of only 368 bytes. Others asked for more beginner examples and pointed to existing Atari sample collections for Mad Pascal and Millfork as models. A run of KickC questions threads followed, covering keyboard input, loading and saving, and graphics routines.
Follow-up: KickC 0.8.4
About six weeks later, KickC 0.8.4 added conio.h support for the Atari XL/XE (console text input and output), many bug fixes and new assembly fragments. The release could also compile a set of community benchmark programs written by fenrock without changes. Users compared KickC with Mad Pascal and other 6502 languages in a dedicated benchmark thread.
Why it matters
KickC arrived in the same year as vbcc's Atari target. It is aimed at programmers who want C syntax with output close to hand-written assembly, and its open, text-based target files make it easy to adapt to custom cartridge or memory layouts.
Getting it
KickC is hosted on GitLab at gitlab.com/camelot/kickc. The releases page has the current version.
Credits
- AtariAge — KickC Optimizing C-Compiler now supports Atari 8bit XL/XE — AtariAge forum members
- AtariAge — KickC 0.8.4 released — AtariAge forum members
