Cc65
Template:Short description Template:Lowercase title {{#invoke:Infobox|infobox}}Template:Template other {{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Infobox software with unknown parameter "_VALUE_"|ignoreblank=y| AsOf | author | background | bodystyle | caption | collapsetext | collapsible | developer | discontinued | engine | engines | genre | included with | language | language count | language footnote | latest preview date | latest preview version | latest release date | latest release version | latest_preview_date | latest_preview_version | latest_release_date | latest_release_version | licence | license | logo | logo alt | logo caption | logo class | logo size | logo title | logo upright | logo_alt | logo_caption | logo_class | logo_size | logo_title | logo_upright | middleware | module | name | operating system | operating_system | other_names | platform | programming language | programming_language | qid | released | replaced_by | replaces | repo | screenshot | screenshot alt | screenshot class | screenshot size | screenshot title | screenshot upright | screenshot_alt | screenshot_class | screenshot_size | screenshot_upright | service_name | size | standard | title | ver layout | website }}Template:Main other{{#invoke:Check for conflicting parameters|check | template = Template:Infobox software | cat = Template:Main other | logo size; logo_size | logo class; logo_class | logo alt; logo_alt | logo title; logo_title | logo caption; logo_caption | screenshot size; screenshot_size | screenshot upright; screenshot_upright | screenshot class; screenshot_class | screenshot alt; screenshot_alt | screenshot title; screenshot title | latest release version; latest_release_version | latest release date; latest_release_date | latest preview version; latest_preview_version | latest preview date; latest_preview_date | latest release version; latest_release_version | latest release date; latest_release_date | latest preview version; latest_preview_version | latest preview date; latest_preview_date | programming language; programming_language | operating system; operating_system }}
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.[1]
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 Template:Mono screen handling. GEOS is also supported on the Commodore 64 and the Apple II. The library supports Commodore 8-bit systems, Apple II, Atari 8-bit computers, Oric Atmos, Nintendo Entertainment System,[2][3] Watara Supervision game console, Synertek Systems SYM-1 and Ohio Scientific Challenger 1P.[4]
Officially supported host systems include Linux, Windows, MS-DOS and OS/2, but the source code itself has been reportedTemplate:By whom to work almost unmodified on many platforms besides these.
The ca65 macro assembler supports 6502, 65C02, and 65C816 processors, and can be used standalone without the C compiler.[5]
Supported API
static
- conio (text-based console I/O non-scrolling)
- dio (block-oriented disk I/O bypassing the file system)
dynamic
- em (expanded memory, used for all kinds of memory beyond the 6502's 64K barrier, similar EMS)
- joystick (relative input devices)
- mouse (absolute input devices)
- serial (communication)
- tgi (2D graphics primitives inspired by BGI)
| conio | dio | emd | joy | mou | ser | tgi | |
|---|---|---|---|---|---|---|---|
| apple2 | Template:Yes | Template:Yes | 1 | 1 | 1 | 1 | 2 |
| apple2enh | Template:Yes | Template:Yes | 1 | 1 | 1 | 1 | 2 |
| atari | Template:Yes | Template:Yes | 2 | 15[6] | |||
| atmos | Template:Yes | 1 | |||||
| c16 | Template:Yes | 1 | 1 | ||||
| c64 | Template:Yes | 6 | 4 | 3 | 1 | 1 | |
| c128 | Template:Yes | 5 | 2 | 3 | 1 | 2 | |
| cbm510 | Template:Yes | 1 | 1 | 1 | |||
| cbm610 | Template:Yes | 1 | 1 | ||||
| geos | Template:Yes | Template:Yes | 1 | 1 | 1 | ||
| lynx | 1 | 1 | 1 | ||||
| nes | Template:Yes | 1 | 1 | ||||
| osic1p | Template:Yes | ||||||
| pet | Template:Yes | 1 | |||||
| plus4 | Template:Yes | 1 | 1 | ||||
| supervision | |||||||
| sym1 | |||||||
| vic20 | Template:Yes | 2 |
Note: For static libraries, "Yes" means the feature is available. For dynamic libraries, the columns list the number of available drivers.
References
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ Template:Cite book
- ↑ Template:Cite book
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ By Fatih Aygün. CIRCLE doesn't work at all, some graphics modes may crash on some machines.