Note: the bellow guide applies to versions 2.3 or later. If you're looking for the older usage guide, please read the old version of this page.
Before getting started, have a look at this figure to understand how XC=BASIC source files are compiled to C64 executable programs. There are two steps involved. First, the xcbasic64 compiler compiles the .bas source file to an intermediate assembly source. Then DASM is kicked in and it assembles the intermediate source file to program file.
chmod +x dasm
chmod +x xcbasic64
You can now invoke xcbasic64 from the command line as follows:
xcbasic64 [-options] source.bas target.prg
The following command line options can be used:
-o or --output= | Output type. Possible values are: prg (default) or asm . If set to asm , DASM will not be invoked and the intermediate assembly source will be output. |
-d or --dasm= | Path to the DASM executable. Defaults to “dasm.exe” (Windows) or “dasm” (Linux/Mac). This is required only if DASM is not in the executable path or you want to override this value for some reason. |
-s or --symbol= | Symbol dump file name. This is passed to DASM as it is. It is useful for debugging your program |
-l or --list= | List file name. This is passed to DASM as it is. Also useful for debugging. |
-n or --noopt | Do NOT run the optimizer |
-h or --help | Display help |
These editors offer syntax highlighting and integrated compile/run commands for the latest version of XC=BASIC:
The following ones also work but they're not actively maintained: