Welcome to the XC=BASIC Wiki

XC=BASIC is a dialect of the BASIC programming language for the Commodore-64 and xcbasic64 is a cross-compiler that compiles XC=BASIC source code to 6502 machine code.

Some of the advantages of programming in XC=BASIC are:

  • Cross development - use your favourite OS/editor/etc.
  • Higher execution speed - no interpreter, the source is compiled to pure machine code.
  • More available RAM - the program does not require the BASIC ROM to be present, which means the program code may span from $0801 to $CFFF - a total of 50K!

Advanced features

  • complex expressions are allowed
  • global and local variables
  • integer and floating point types, type casting
  • constants
  • procedures
  • recursive procedure calls
  • inclusion of other source or binary files
  • C-like strings
  • inline assembly support
  • automatic code optimizer

The term “XC=BASIC” stands for “Cross Compiled BASIC”.

This site contains the documentation for XC=BASIC V2.x. Click here if you're looking for the v1.x documentation.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies


Enter your comment. Wiki syntax is allowed: