LLVM-MC(1)
π LLVM-MC(1)
okay so this is the llvm-mc manual page, and it lives in the User Commands manual β yes, the manual name is folded in right here at the top like a little name tag π«Ά. It's the page for llvm-mc 18, and bestie, we're gonna go through it together, no cap β¨.
πΈ NAME
llvm-mc - manual page for llvm-mc 18. That's the whole name section: short, iconic, periodt π
.
π DESCRIPTION
okay so here's the vibe. OVERVIEW: llvm machine code playground.
USAGE: the usage is literally:
llvm-mc [options] <input file>
Then it's giving OPTIONS: β and bestie, I got you, every single one is below π«Ά. No skipping, no summarizing, fr fr.
π OPTIONS
Full options buffet. Zero crumbs left behind, periodt π .
π¨ Color Options
--colorβ Use colors in output (default=autodetect). The default isautodetect, so it's not just gonna assume β it checks first π.
π§ Generic Options
--helpβ Display available options (--help-hiddenfor more). Very helpful, very demure.--help-listβ Display list of available options (--help-list-hiddenfor more). List girlie π.--versionβ Display the version of this program. Version check, slay β .
π₯ MC Options
-I <directory>β Directory of include files. Include path vibes π.-M <string>β Disassembler options. Disassembler knob moment.--arch=<string>β Target arch to assemble for, see-versionfor available targets. Arch check!
Action to perform:
--as-lexβ Lex tokens from a.sfile. Token tea π΅.--assembleβ Assemble a.sfile (default). This is the default, bestie π.--disassembleβ Disassemble strings of hex bytes. Hex goblin mode π₯.--mdisβ Marked up disassembly of strings of hex bytes. Marked-up moment β¨.--cdisβ Colored disassembly of strings of hex bytes. Colorful chaos π.--compress-debug-sections=<value>β Choose DWARF debug sections compression:=noneβ No compression=zlibβ Use zlib=zstdβ Use zstd
--defsym=<string>β Defines a symbol to be an integer constant. Symbol slay.--fdebug-compilation-dir=<string>β Specifies the debug info's compilation dir. Debug dir details.--fdebug-prefix-map=<= separated key-value pairs>β Map file source paths in debug info. Path mapping, iykyk.--filetype=<value>β Choose an output file type:=asmβ Emit an assembly (.s) file=nullβ Don't emit anything (for timing purposes)=objβ Emit a native object (.o) file
-gβ Generate dwarf debugging info for assembly source files. Debug info era π.--large-code-modelβ Create cfi directives that assume the code might be more than2gbaway. Big code model energy.--main-file-name=<string>β Specifies the name we should consider the input file. Main character file name π.--masm-hexfloatsβ Enable MASM-style hex float initializers (3F800000r). Hex float moment.--masm-integersβ Enable binary and hex masm integers (0b110and0ABCh). Masm integer vibes.--mattr=<a1,+a2,-a3,...>β Target specific attributes (-mattr=helpfor details). Attribute check!.--mcpu=<cpu-name>β Target a specific cpu type (-mcpu=helpfor details). CPU moment.--motorola-integersβ Enable binary and hex Motorola integers (%110and$ABC). Motorola integers, iconic.-nβ Don't assume assembly file starts in the text section. No assumptions.--no-exec-stackβ File doesn't need an exec stack. Stack says no.-o <filename>β Output filename. Output go brrr.--output-asm-variant=<uint>β Syntax variant to use for output printing. Syntax variant tea.--position-independentβ Position independent. PIE vibes.--preserve-commentsβ Preserve Comments in outputted assembly. Keep the comments! π¬.--print-imm-hexβ Prefer hex format for immediate values. Hex immediates, slay.--relax-relocationsβ EmitR_X86_64_GOTPCRELXinstead ofR_X86_64_GOTPCREL. Relocation glow-up.--save-temp-labelsβ Don't discard temporary labels. Save the temp labels π.--show-encodingβ Show instruction encodings. Encoding reveal.--show-instβ Show internal instruction representation. Internal representation moment.--show-inst-operandsβ Show instructions operands as parsed. Operands as parsed, periodt.--split-dwarf-file=<filename>β DWO output filename. DWO file name.--triple=<string>β Target triple to assemble for, see-versionfor available targets. Triple check!
k bye bestie π β this page is from llvm-mc 18, dated June 2025, under LLVM-MC(1). slay, go assemble something cute β¨.
π¦ where this page comes from
- debian trixie: llvm-18 1:18.1.8-18+b1 Β· APACHE-2-LLVM-EXCEPTIONS
- ubuntu questing: llvm-18 1:18.1.8-18ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms