Next Previous Contents

# cc65 Users Guide

## Ullrich von Bassewitz, uz@cc65.org

03.09.2000, 02.10.2001, 2005-8-1

cc65 is a C compiler for 6502 targets. It supports several 6502 based home computers like the Commodore and Atari machines, but it is easily retargetable.

## 1. Overview

## 2. Usage

- 2.1 Command line option overview
- 2.2 Command line options in detail

## 3. Input and output

## 4. Differences to the ISO standard

## 5. Extensions

## 6. Predefined macros

## 7. #pragmas

- 7.1 `#pragma bssseg ([push,]<name>)`
- 7.2 `#pragma charmap (<index>, <code>)`
- 7.3 `#pragma checkstack ([push,]on|off)`
- 7.4 `#pragma codeseg ([push,]<name>)`
- 7.5 `#pragma codesize ([push,]<int>)`
- 7.6 `#pragma dataseg ([push,]<name>)`
- 7.7 `#pragma optimize ([push,]on|off)`
- 7.8 `#pragma rodataseg ([push,]<name>)`
- 7.9 `#pragma regvaraddr ([push,]on|off)`
- 7.10 `#pragma regvars ([push,]on|off)`
- 7.11 `#pragma signedchars ([push,]on|off)`
- 7.12 `#pragma staticlocals ([push,]on|off)`
- 7.13 `#pragma warn ([push,]on|off)`
- 7.14 `#pragma zpsym (<name>)`

## 8. Register variables

## 9. Inline assembler

## 10. Implementation-defined behavior

## 11. Bugs/Feedback

## 12. Copyright

Next Previous Contents