<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>llvm-dis - LLVM disassembler — LLVM 8 documentation</title> <link rel="stylesheet" href="../_static/llvm-theme.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/language_data.js"></script> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="opt - LLVM optimizer" href="opt.html" /> <link rel="prev" title="llvm-as - LLVM assembler" href="llvm-as.html" /> <style type="text/css"> table.right { float: right; margin-left: 20px; } table.right td { border: 1px solid #ccc; } </style> </head><body> <div class="logo"> <a href="../index.html"> <img src="../_static/logo.png" alt="LLVM Logo" width="250" height="88"/></a> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="opt.html" title="opt - LLVM optimizer" accesskey="N">next</a> |</li> <li class="right" > <a href="llvm-as.html" title="llvm-as - LLVM assembler" accesskey="P">previous</a> |</li> <li><a href="http://llvm.org/">LLVM Home</a> | </li> <li><a href="../index.html">Documentation</a>»</li> <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">LLVM Command Guide</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="body" role="main"> <div class="section" id="llvm-dis-llvm-disassembler"> <h1>llvm-dis - LLVM disassembler<a class="headerlink" href="#llvm-dis-llvm-disassembler" title="Permalink to this headline">¶</a></h1> <div class="section" id="synopsis"> <h2>SYNOPSIS<a class="headerlink" href="#synopsis" title="Permalink to this headline">¶</a></h2> <p><strong>llvm-dis</strong> [<em>options</em>] [<em>filename</em>]</p> </div> <div class="section" id="description"> <h2>DESCRIPTION<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2> <p>The <strong>llvm-dis</strong> command is the LLVM disassembler. It takes an LLVM bitcode file and converts it into human-readable LLVM assembly language.</p> <p>If filename is omitted or specified as <code class="docutils literal notranslate"><span class="pre">-</span></code>, <strong>llvm-dis</strong> reads its input from standard input.</p> <p>If the input is being read from standard input, then <strong>llvm-dis</strong> will send its output to standard output by default. Otherwise, the output will be written to a file named after the input file, with a <code class="docutils literal notranslate"><span class="pre">.ll</span></code> suffix added (any existing <code class="docutils literal notranslate"><span class="pre">.bc</span></code> suffix will first be removed). You can override the choice of output file using the <strong>-o</strong> option.</p> </div> <div class="section" id="options"> <h2>OPTIONS<a class="headerlink" href="#options" title="Permalink to this headline">¶</a></h2> <p><strong>-f</strong></p> <blockquote> <div>Enable binary output on terminals. Normally, <strong>llvm-dis</strong> will refuse to write raw bitcode output if the output stream is a terminal. With this option, <strong>llvm-dis</strong> will write raw bitcode regardless of the output device.</div></blockquote> <p><strong>-help</strong></p> <blockquote> <div>Print a summary of command line options.</div></blockquote> <p><strong>-o</strong> <em>filename</em></p> <blockquote> <div>Specify the output file name. If <em>filename</em> is -, then the output is sent to standard output.</div></blockquote> </div> <div class="section" id="exit-status"> <h2>EXIT STATUS<a class="headerlink" href="#exit-status" title="Permalink to this headline">¶</a></h2> <p>If <strong>llvm-dis</strong> succeeds, it will exit with 0. Otherwise, if an error occurs, it will exit with a non-zero value.</p> </div> <div class="section" id="see-also"> <h2>SEE ALSO<a class="headerlink" href="#see-also" title="Permalink to this headline">¶</a></h2> <p>llvm-as|llvm-as</p> </div> </div> </div> </div> <div class="clearer"></div> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="opt.html" title="opt - LLVM optimizer" >next</a> |</li> <li class="right" > <a href="llvm-as.html" title="llvm-as - LLVM assembler" >previous</a> |</li> <li><a href="http://llvm.org/">LLVM Home</a> | </li> <li><a href="../index.html">Documentation</a>»</li> <li class="nav-item nav-item-1"><a href="index.html" >LLVM Command Guide</a> »</li> </ul> </div> <div class="footer" role="contentinfo"> © Copyright 2003-2020, LLVM Project. Last updated on 2020-09-07. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.4. </div> </body> </html>