From: Reid Spencer Date: Sat, 10 Jul 2004 20:04:02 +0000 (+0000) Subject: Command Guide for the Stacker language compiler, stkrc. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8ec085cb146a4318bf7863ae4d41d68300e20437;p=oota-llvm.git Command Guide for the Stacker language compiler, stkrc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14733 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/CommandGuide/stkrc.pod b/docs/CommandGuide/stkrc.pod new file mode 100644 index 00000000000..c43bdcbb571 --- /dev/null +++ b/docs/CommandGuide/stkrc.pod @@ -0,0 +1,95 @@ +=pod + +=head1 NAME + +stkrc - Stacker Compiler + +=head1 SYNOPSIS + +B [I] [I] + +=head1 DESCRIPTION + +The B 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 +L . The B compiler is fairly +minimal. It compiles to bytecode only and doesn't perform any optimizations. +The output of stkrc (a bytecode file) can be piped through other LLVM tools +for optimization and linking. + +If F is omitted or is C<->, then B 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 B<-o> option, then +B sends its output to a file or standard output by following +these rules: + +=over + +=item * + +If the input is standard input, then the output is standard output. + +=item * + +If the input is a file that ends with C<.st>, then the output file is of +the same name, except that the suffix is changed to C<.bc>. + +=item * + +If the input is a file that does not end with the C<.st> suffix, then the +output file has the same name as the input file, except that the C<.bc> +suffix is appended. + +=back + +=head1 OPTIONS + +=over + +=item B<-o> F + +Specify the output file name. If F is C<->, then B +sends its output to standard output. + +=item B<-stats> + +Print statistics acquired during compilation. + +=item B<-time-passes> + +Record the amount of time needed for each pass and print it to standard +error. + +=item B<-f> + +Force the output to be written. Normally, B won't overwrite an existing +bytecode file. This option overrides that behavior. + +=item B<-s=stacksize> + +Specify the stack size for the program. The default stack size, 1024, should be +sufficient for most programs. For very large, programs, you might want to +provide a larger value. + +=item B<-help> + +Print a summary of command line options. + +=back + +=head1 EXIT STATUS + +If B succeeds, it will exit with 0. Otherwise, if an error +occurs, it will exit with a non-zero value, usually 1. + +=head1 SEE ALSO + +L, L + +=head1 AUTHORS + +Maintained by the LLVM Team (L). + +=cut