1LLVM-AS(1)                    LLVM Command Guide                    LLVM-AS(1)
2
3
4

NAME

6       llvm-as - LLVM assembler
7

SYNOPSIS

9       llvm-as [options] [filename]
10

DESCRIPTION

12       llvm-as is the LLVM assembler.  It reads a file containing human-
13       readable LLVM assembly language, translates it to LLVM bitcode, and
14       writes the result into a file or to standard output.
15
16       If filename is omitted or is "-", then llvm-as reads its input from
17       standard input.
18
19       If an output file is not specified with the -o option, then llvm-as
20       sends its output to a file or standard output by following these rules:
21
22       ·   If the input is standard input, then the output is standard output.
23
24       ·   If the input is a file that ends with ".ll", then the output file
25           is of the same name, except that the suffix is changed to ".bc".
26
27       ·   If the input is a file that does not end with the ".ll" suffix,
28           then the output file has the same name as the input file, except
29           that the ".bc" suffix is appended.
30

OPTIONS

32       -f  Enable binary output on terminals.  Normally, llvm-as will refuse
33           to write raw bitcode output if the output stream is a terminal.
34           With this option, llvm-as will write raw bitcode regardless of the
35           output device.
36
37       -help
38           Print a summary of command line options.
39
40       -o filename
41           Specify the output file name.  If filename is "-", then llvm-as
42           sends its output to standard output.
43

EXIT STATUS

45       If llvm-as succeeds, it will exit with 0.  Otherwise, if an error
46       occurs, it will exit with a non-zero value.
47

SEE ALSO

49       llvm-dis, gccas
50

AUTHORS

52       Maintained by the LLVM Team (<http://llvm.org>).
53
54
55
56CVS                               2010-05-07                        LLVM-AS(1)
Impressum