llvm-as

LLVM Intermediate Representation (.ll) to Bitcode (.bc) assembler. More information: <https://llvm.org/docs/CommandGuide/llvm-as.html>.

Install

All systems
curl cmd.cat/llvm-as.sh
Debian Debian
apt-get install llvm-3.0
Ubuntu
apt-get install llvm-8
Alpine
apk add llvm
Arch Arch Linux
pacman -S llvm6
image/svg+xml Kali Linux
apt-get install llvm-7
CentOS
yum install llvm
Fedora
dnf install llvm3.7
Windows (WSL2)
sudo apt-get update sudo apt-get install llvm-8
OS X
brew install llvm
Raspbian
apt-get install llvm-3.2
Docker
docker run cmd.cat/llvm-as llvm-as powered by Commando

LLVM Intermediate Representation (.ll) to Bitcode (.bc) assembler. More information: <https://llvm.org/docs/CommandGuide/llvm-as.html>.

  • Assemble an IR file:
    llvm-as -o path/to/out.bc path/to/source.ll
  • Assemble an IR file and include a module hash in the produced Bitcode file:
    llvm-as --module-hash -o path/to/out.bc path/to/source.ll
  • Read an IR file from `stdin` and assemble it:
    cat path/to/source.ll | llvm-as -o path/to/out.bc

© tl;dr; authors and contributors