Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

This is an old revision of the document!


~~DISCUSSION:off~~

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.