Skip to content

hindermath/cc65

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12,233 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The cc65 cross-compiler suite

cc65 is a complete cross-development package for 65(C)02 systems, including a powerful macro assembler, a C compiler, linker, archiver, simulator and several other tools. cc65 has C and runtime library support for many of the old 6502 machines. For details look at the cc65 web site:

Company / People Machine / Environment
Apple Apple II
Apple IIe enhanced
Atari Atari 400/800
Atari 2600
Atari 5200
Atari 7800
Atari XL
Lynx
Tangerine Oric Atmos
Eureka Oric Telestrat
Acorn BBC series
Commodore C128
C16
C64
CBM 510/610
PET
Plus/4
VIC-20
VTech CreatiVision
Commander X16 Community Commander X16
Bit Corporation Gamate
Berkeley Softworks GEOS (Apple/CBM)
LUnix Team LUnix (C64)
Nintendo Nintendo Entertainment System (NES)
Ohio Scientific OSI C1P
MOS Technology, Inc. KIM-1
NEC PC Engine (PCE)
Rumbledethumps Picocomputer 6502 (RP6502)
Watara Watara/QuickShot Supervision
Synertek SYM-1
USSR Agat-7/9

A generic configuration to adapt cc65 to new targets is also around.

People

cc65 is originally based on the "Small C" compiler by Ron Cain and enhanced by James E. Hendrix.

Project founders

  • John R. Dunning: original implementation of the C compiler and runtime library, Atari hosted.
  • Ullrich von Bassewitz:
    • moved Dunning's code to modern systems,
    • rewrote most parts of the compiler,
    • rewrote all of the runtime library.

Core team members

External contributors

(The above list is incomplete, if you feel left out - please speak up or add yourself in a PR)

For a complete list look at the full team list or the list of all contributors.

Contact

For general discussion, questions, etc subscribe to the mailing list or use the github discussions.

Some of us may also be around on IRC #cc65 on libera.chat.

Documentation

  • The main Documentation for users and developers.
  • Info on Contributing to the CC65 project. Please read this before working on something you want to contribute, and before reporting bugs.
  • The Wiki contains some extra info that does not fit into the regular documentation.

Downloads

Building from source

To build the cc65 suite from source, a simple make in the root directory is usually enough:

make

By default, the build includes debug information. To create a release build without debug information, you can set the DEBUG variable to 0:

make DEBUG=0

Snapshot Build


Fork-Entwicklungsinfrastruktur / Fork development tooling

Dieser Fork enthält in .dev-tools/ lokale Hilfsskripte für den Pre-Push Secret-Scan. Sie liegen bewusst in einem versteckten Verzeichnis, um nicht mit der Upstream-Struktur zu kollidieren.

This fork includes local helper scripts in .dev-tools/ for pre-push secret scanning. They are intentionally placed in a hidden directory to avoid conflicts with the upstream structure.

Ersteinrichtung nach dem Clonen / Initial setup after cloning

# macOS / Linux
git clone https://github.com/hindermath/cc65.git
cd cc65
bash .dev-tools/install-hooks.sh
# Windows (PowerShell Core >= 7)
git clone https://github.com/hindermath/cc65.git
Set-Location cc65
pwsh .dev-tools/install-hooks.ps1

Verfügbare Skripte / Available scripts

Skript / Script Beschreibung / Description
.dev-tools/install-hooks.sh Git-Hooks installieren (Bash)
.dev-tools/install-hooks.ps1 Git-Hooks installieren (PowerShell Core)
.dev-tools/scan-agent-secrets.sh Secret-Scan manuell ausführen (Bash)
.dev-tools/scan-agent-secrets.ps1 Secret-Scan manuell ausführen (PowerShell Core)
.dev-tools/hooks/pre-push Pre-Push Hook – blockiert Push bei Secrets

Der pre-push-Hook läuft automatisch bei jedem git push und prüft alle git-getrackten Dateien auf Credentials, Tokens und andere Secrets.

The pre-push hook runs automatically on every git push and checks all git-tracked files for credentials, tokens, and other secrets.

Spec-Kit-Governance-Presets / Spec Kit Governance Presets

Alle sechs Governance-Presets sind seit 2026-05-04 im github/spec-kit Community-Katalog enthalten. Für C#/.NET-Level-2-Projekte ist die Standardentscheidung in dieser Workspace-Familie: alle sechs Presets installieren, sofern das Projekt keine begründete Ausnahme dokumentiert.

Standard-Preset-Set:

  • security-governance v0.2.0, Priority 10
  • architecture-governance v0.2.0, Priority 20
  • isaqb-architecture-governance v0.1.0, Priority 30
  • a11y-governance v0.2.0, Priority 40
  • cross-platform-governance v0.1.0, Priority 50
  • agent-parity-governance v0.1.0, Priority 60

Nach Installation oder Update prüfen:

specify preset list
specify preset info security-governance
specify preset resolve constitution-template.md

Wenn Presets Projekt-Policy sind, .specify/presets/ und erzeugte Agenten-/Command-Dateien committen; .specify/presets/.cache/ nicht committen.

All six governance presets are included in the github/spec-kit community catalog as of 2026-05-04. C#/.NET Level-2 projects default to all six presets unless a justified exception is documented. Commit .specify/presets/ and generated agent/command files when presets are project policy; do not commit .specify/presets/.cache/.

Barrierefreiheit / Accessibility (A11Y)

Dieses Projekt folgt grundlegenden Barrierefreiheitsstandards für alle dokumentierten Inhalte und Benutzeroberflächen.

Richtlinien für Markdown-Dokumentation:

  • Überschriften folgen einer klaren Hierarchie (h1 → h2 → h3 — keine Ebene überspringen)
  • Alle Bilder haben aussagekräftige Alt-Texte (![Beschreibung](bild.png))
  • Linkbeschriftungen sind beschreibend ([Installationsanleitung](...) statt [hier](...))
  • Code-Blöcke geben die Sprache an (```bash, ```powershell)
  • Tabellen haben Kopfzeilen für alle Spalten
  • Keine Informationen werden ausschließlich über Farbe vermittelt

This project follows basic accessibility standards for all documented content and user interfaces.

Guidelines for Markdown documentation:

  • Headings follow a clear hierarchy (h1 → h2 → h3 — no level skipped)
  • All images have meaningful alt texts (![Description](image.png))
  • Link labels are descriptive ([Installation guide](...) instead of [here](...))
  • Code blocks specify the language (```bash, ```powershell)
  • Tables have header rows for all columns
  • No information is conveyed through colour alone

Spec-kit-Workflow

Neue Features in diesem Workspace werden nach dem Specification-Driven Development (SDD)-Workflow entwickelt. Der Workflow verwendet das speckit-CLI-Tool (GitHub Copilot Skill).

Schritte für ein neues Feature:

  1. Spezifikation erstellenspeckit specify "Feature-Name"specs/{branch}/spec.md
  2. Klärungsfragenspeckit clarify → offene Fragen in spec.md beantworten
  3. Implementierungsplanspeckit planspecs/{branch}/plan.md
  4. Aufgabenlistespeckit tasksspecs/{branch}/tasks.md
  5. Implementierenspeckit implement → Aufgaben aus tasks.md abarbeiten
  6. Validierenbash scripts/check-homogeneity.sh → Compliance-Score prüfen

Alle Spec-Artefakte werden im Branch-Verzeichnis specs/{branch}/ gespeichert und versioniert.


Spec-kit Workflow

New features in this workspace are developed following the Specification-Driven Development (SDD) workflow. The workflow uses the speckit CLI tool (GitHub Copilot Skill).

Steps for a new feature:

  1. Create specificationspeckit specify "Feature Name"specs/{branch}/spec.md
  2. Clarification questionsspeckit clarify → answer open questions in spec.md
  3. Implementation planspeckit planspecs/{branch}/plan.md
  4. Task listspeckit tasksspecs/{branch}/tasks.md
  5. Implementspeckit implement → work through tasks in tasks.md
  6. Validatebash scripts/check-homogeneity.sh → check compliance score

All spec artefacts are stored and versioned in the branch directory specs/{branch}/.


Homogeneity Guardian — Skript-Kurzreferenz / Script Quick Reference

.dev-tools/check-homogeneity.sh / .dev-tools/check-homogeneity.ps1

Prüft dieses Projekt auf Compliance (constitution.md, A11Y, Spec-kit, Azubis-Abschnitte, STATS.md). Checks this project for compliance (constitution.md, A11Y, Spec-kit, Azubis sections, STATS.md).

bash .dev-tools/check-homogeneity.sh

# JSON-Ausgabe für CI/Scripting / JSON output for CI/scripting
bash .dev-tools/check-homogeneity.sh --json
pwsh .dev-tools/check-homogeneity.ps1
pwsh .dev-tools/check-homogeneity.ps1 -Json

.dev-tools/init-stats.sh / .dev-tools/init-stats.ps1

Schreibt einen Baseline-Eintrag in STATS.md. Einmalig nach dem Einrichten ausführen. Writes a baseline entry to STATS.md. Run once after initial setup.

bash .dev-tools/init-stats.sh
pwsh .dev-tools/init-stats.ps1

.dev-tools/rename-lastenheft.sh / .dev-tools/rename-lastenheft.ps1

Benennt eine Lastenheft-Datei via git mv um und committet — fügt Branch-Suffix hinzu. Renames a Lastenheft file via git mv and commits — adds branch suffix.

# Datei umbenennen und committen / Rename and commit
bash .dev-tools/rename-lastenheft.sh Lastenheft_foo.md 002-feature-branch
# Ergebnis / Result: Lastenheft_foo.002-feature-branch.md
pwsh .dev-tools/rename-lastenheft.ps1 -File Lastenheft_foo.md -Branch 002-feature-branch

.dev-tools/install-hooks.sh / .dev-tools/install-hooks.ps1

Installiert den pre-push-Hook nach dem Clonen auf einem neuen Gerät. Installs the pre-push hook after cloning on a new device.

bash .dev-tools/install-hooks.sh
pwsh .dev-tools/install-hooks.ps1

Für Azubis / For Apprentices

Willkommen! Diese Sektion beschreibt den Einstieg in die Entwicklungsumgebung für Fachinformatiker-Azubis und andere Einsteiger.

Voraussetzungen:

  • Git (macOS: brew install git / Windows: winget install Git.Git)
  • PowerShell 7+ (Windows: winget install Microsoft.PowerShell)
  • ripgrep (macOS: brew install ripgrep / Windows: winget install BurntSushi.ripgrep.MSVC)
  • GitHub CLI (macOS: brew install gh / Windows: winget install GitHub.cli)

Ersten Schritt ausführen:

# Repository klonen
git clone <repo-url>
cd <projekt-verzeichnis>

# Hooks installieren
bash scripts/install-hooks.sh

# Compliance prüfen
bash scripts/check-homogeneity.sh

Hilfreiche Befehle:

Befehl Beschreibung
bash scripts/check-homogeneity.sh Compliance-Bericht anzeigen
bash scripts/init-stats.sh Compliance-Baseline in STATS.md schreiben
git log --oneline -10 Letzte 10 Commits anzeigen

Bei Fragen: Issue im GitHub-Repository erstellen oder Mentor ansprechen.


Welcome! This section describes how to get started with the development environment for apprentice software developers (Fachinformatiker-Azubis) and other beginners.

Prerequisites:

  • Git (macOS: brew install git / Windows: winget install Git.Git)
  • PowerShell 7+ (Windows: winget install Microsoft.PowerShell)
  • ripgrep (macOS: brew install ripgrep / Windows: winget install BurntSushi.ripgrep.MSVC)
  • GitHub CLI (macOS: brew install gh / Windows: winget install GitHub.cli)

First steps:

# Clone the repository
git clone <repo-url>
cd <project-directory>

# Install hooks
bash scripts/install-hooks.sh

# Check compliance
bash scripts/check-homogeneity.sh

Useful commands:

Command Description
bash scripts/check-homogeneity.sh Show compliance report
bash scripts/init-stats.sh Write compliance baseline to STATS.md
git log --oneline -10 Show last 10 commits

For questions: open an issue in the GitHub repository or ask your mentor.

About

cc65 - a freeware C compiler for 6502 based systems

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C 60.8%
  • Assembly 32.8%
  • Shell 2.0%
  • PowerShell 1.6%
  • Pascal 1.1%
  • Makefile 0.7%
  • Other 1.0%