9 <h1>LLVM: llvm-as tool</h1>
23 llvm-as [options] [filename]
28 The llvm-as command is the LLVM assembler. It reads a file containing human
29 readable LLVM assembly language, translates it to LLVM bytecode, and writes the
30 result into a file or to standard output.
33 If filename is omitted or is -, then llvm-as reads its input from standard
37 If an output file is not specified with the -o option, then llvm-as sends its
38 output to a file or standard output by the following logic:
42 If the input is standard input, then the output is standard output.
46 If the input is a file that ends with .ll, then the output file is of
47 the same name, except that the suffix is changed to .bc.
51 If the input is a file that does not end with the .ll suffix, then the
52 output file has the same name as the input file, except that the .bc suffix
64 Force overwrite. Normally, llvm-as will refuse to overwrite an output
65 file that already exists. With this option, llvm-as will overwrite the
66 output file and replace it with new bytecode.
71 Print a summary of command line options.
74 <li> -o <filename>
76 Specify the output filename. If filename is -, then llvm-as sends its
77 output to standard output.
87 Record the amount of time needed for each pass and print it to standard
96 If llvm-as succeeds, it will exit with 0. Otherwise, if an error occurs, it
97 will exit with a non-zero value.
105 Maintained by the <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>.