stkrc - Stacker Compiler
stkrc [options] [filename]
The stkrc command is the compiler for the Stacker language. Stacker is a simple stack based, Forth-like language that was written as a demonstration language for LLVM. For details on the language, please see http://llvm.org/docs/Stacker.html . The stkrc compiler is fairly minimal. It compiles to bitcode only and doesn't perform any optimizations. The output of stkrc (a bitcode file) can be piped through other LLVM tools for optimization and linking.
If filename is omitted or is -
, then stkrc reads its input
from standard input. This is useful for combining the tool into a pipeline.
If an output file is not specified with the -o option, then llvm-as sends its output to a file or standard output by following these rules:
.st
, then the output file is of
the same name, except that the suffix is changed to .bc
.
If the input is a file that does not end with the .st
suffix, then the
output file has the same name as the input file, except that the .bc
suffix is appended.
-
, then llvm-as
sends its output to standard output.
If stkrc succeeds, it will exit with 0. Otherwise, if an error occurs, it will exit with a non-zero value, usually 1.
the llvm-as manpage, http://llvm.org/docs/Stacker.html
Maintained by the LLVM Team (http://llvm.org).