CmdID

CmdID / Commands

llvm-mc

LLVM Machine Code Playground. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

LLVM Machine Code Playground. It provides a set of tools for working with LLVM machine code. Part of LLVM.

Assemble assembly code file into object file with machine code

llvm-mc --filetype=obj -o path/to/output.o path/to/input.sIdentify

Disassemble object file with machine code into assembly code file

llvm-mc --disassemble -o path/to/output.s path/to/input.oIdentify

Compile LLVM bit code file into assembly code

llvm-mc -o path/to/output.s path/to/input.bcIdentify

Assemble assembly code from stdin and show encoding to stdout

echo "addl %eax, %ebx" | llvm-mc -show-encoding -show-instIdentify

Disassemble machine code from stdin for specified triple

echo "0xCD 0x21" | llvm-mc --disassemble -triple=target_nameIdentify