Cc65 Explained

cc65
Developer:Ullrich von Bassewitz
Released:[1]
Operating System:Multiplatform

cc65 is a cross development package for 6502 and 65C02 targets, including a macro assembler, a C cross compiler, linker, librarian and several other tools.

Overview

cc65 is based on a native C compiler that was originally adapted for the Atari 8-bit computers by John R. Dunning in 1989, which originated as a Small-C descendant. It has several extensions, and some of the limits of the original Small C compiler are gone.

The toolkit has largely been expanded by Ullrich von Bassewitz and other contributors. The actual cc65 compiler, a complete set of binary tools (assembler, linker, etc.) and runtime library are under a license identical to zlib's.[2]

The compiler itself comes close to ANSI C compatibility, while C library features depend on the target platform's hardware. stdio is supported on many platforms, as is Borland-style screen handling. GEOS is also supported on the Commodore 64 and the Apple II. The library supports many of the Commodore platforms (C64, C128, C16/116/Plus/4, P500 and 600/700 family), Apple II, Atari 8-bit computers, Oric Atmos, Nintendo Entertainment System, Watara Supervision game console, Synertek Systems SYM-1 and Ohio Scientific Challenger 1P.[3]

Officially supported host systems include Linux, Microsoft Windows, MS-DOS and OS/2, but the source code itself has been reported to work almost unmodified on many platforms beside these.

The ca65 macro assembler supports 6502, 65C02, and 65C816 processors, and can be used standalone without the C compiler.[4]

Supported API

static

dynamic

dio emd joy mou ser tgi
apple21 1 1 1 2
apple2enh1 1 1 1 2
atari2 15
atmos1
c161 1
c646 4 3 1 1
c1285 2 3 1 2
cbm5101 1 1
cbm6101 1
geos1 1 1-lunixx 1 -->
lynx1 1 1
nes1 1
osic1p
pet1
plus41 1
supervision
sym1
vic202

Note: For static libraries, "Yes" means the feature is available. For dynamic libraries, the columns list the number of available drivers.

External links

Notes and References

  1. http://unusedino.de/ec64/technical/c=hacking/ch17.html C=Hacking #17
  2. Web site: Simplified license. ยท cc65/Cc65@aeb8492. GitHub.
  3. Web site: Ohio Scientific-specific information for cc65.
  4. https://cc65.github.io/doc/ca65.html ca65 Users Guide