CLI Reference#
cutile-basic provides a command-line interface for compiling BASIC source files.
Usage#
python -m cutile_basic.cli [options] <input.bas>
Arguments#
Argument |
Description |
|---|---|
|
Input |
Options#
Option |
Description |
|---|---|
|
Write the compiled |
|
Dump the token stream and exit. |
|
Dump the parsed AST and exit. |
|
Dump the analyzed program (symbols, types, metadata) and exit. |
|
GPU architecture for compilation (e.g. |
Examples#
Compile and print the path to the .cubin:
python -m cutile_basic.cli examples/vector_add.bas
Write the .cubin to a file:
python -m cutile_basic.cli examples/vector_add.bas -o vector_add.cubin
Inspect the token stream:
python -m cutile_basic.cli examples/hello.bas --dump-tokens
Inspect the AST:
python -m cutile_basic.cli examples/hello.bas --dump-ast
Compile to cubin with an explicit GPU architecture:
python -m cutile_basic.cli examples/vector_add.bas --gpu-arch sm_120 -o vector_add.cubin