as

Portable GNU assembler. Primarily intended to assemble output from gcc to be used by ld. More information: <https://manned.org/as>.

Install

All systems
curl cmd.cat/as.sh
Debian Debian
apt-get install binutils-i586-linux-gnu
Ubuntu
apt-get install binutils-2.26
Alpine
apk add binutils
Arch Arch Linux
pacman -S aarch64-linux-gnu-binutils
image/svg+xml Kali Linux
apt-get install binutils-i686-kfreebsd-gnu
CentOS
yum install binutils
Fedora
dnf install binutils-arc-linux-gnu
Windows (WSL2)
sudo apt-get update sudo apt-get install binutils-2.26
OS X
brew install binutils
Raspbian
apt-get install binutils-mingw-w64-i686
Docker
docker run cmd.cat/as as powered by Commando

Portable GNU assembler. Primarily intended to assemble output from gcc to be used by ld. More information: <https://manned.org/as>.

  • Assemble a file, writing the output to `a.out`:
    as file.s
  • Assemble the output to a given file:
    as file.s -o out.o
  • Generate output faster by skipping whitespace and comment preprocessing. (Should only be used for trusted compilers):
    as -f file.s
  • Include a given path to the list of directories to search for files specified in `.include` directives:
    as -I path/to/directory file.s

© tl;dr; authors and contributors