1LLVM-AS(1)                           LLVM                           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-read‐
13       able LLVM assembly language, translates it to LLVM bitcode, and  writes
14       the result into a file or to standard output.
15
16       If filename is omitted or is -, then llvm-as reads its input from stan‐
17       dard 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 is of
25         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,  then
28         the  output file has the same name as the input file, except that the
29         .bc suffix is appended.
30

OPTIONS

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

EXIT STATUS

44       If llvm-as succeeds, it will exit with 0.  Otherwise, if an  error  oc‐
45       curs, it will exit with a non-zero value.
46

SEE ALSO

48       llvm-dis(1), as(1)
49

AUTHOR

51       Maintained by the LLVM Team (https://llvm.org/).
52
54       2003-2023, LLVM Project
55
56
57
58
5913                                2023-01-31                        LLVM-AS(1)
Impressum