OBJ2ASM(1)

πŸ“¦ version 2.109.1, in opensuse-leap 16.0

πŸŽ€ NAME πŸŽ€

okay so bestie, welcome to OBJ2ASM(1) β€” the Digital Mars D manual page for obj2asm, aka the Digital Mars .OBJ file disassembler. πŸ’… It disassembles object files, and honestly? iconic behavior.


✨ SYNOPSIS ✨

obj2asm [-l] [-o] [-x] objfile [srcfile] [-c[outfile[.cod]]]

periodt. that's the whole shape of it. 🫢


🌸 DESCRIPTION 🌸

obj2asm disassembles object (.o) files in Intel OMF, Microsoft COFF format, or linux ELF format. object file in, assembly language file out β€” no cap. πŸ¦‹


πŸ’– OPTIONS πŸ’–

  • -l β€” Omit code labels in the assembly language file it generates. no labels, no problem. ✨
  • -o β€” Emit object code for each assembly language instruction. it's giving receipts for every instruction. πŸ”₯
  • -x β€” Emit code segment offset for each instruction. offset reveal moment. πŸ‘‘
  • objfile β€” The object to disassemble. this is the main-character file. πŸ’…
  • srcfile β€” Use this if the source file name embedded in the object file is missing or incorrect. like when the object's internal source name is doing too much and lowkey lying. πŸ™ˆ
  • -c[outfile[.cod]] β€” Writes output to outfile instead of the standard output. The default extension for outfile is .cod. yes, that exact bracket situation is the flex. πŸŽ€

πŸ”₯ EXAMPLE πŸ”₯

To see the code generated by compiling test.cpp, use the following commands:

dmd -c -g test
obj2asm test.o

slay. go off. 🌈


πŸ’€ BUGS πŸ’€

Although the output of obj2asm is in MASM format, it usually requires a little editing before MASM will accept it. so yes, the output is giving MASM, but MASM might still side-eye it. 😭


πŸ‘‘ AUTHOR πŸ‘‘

Written by Walter Bright β€” www.digitalmars.com/ctg/obj2asm.html

Copyright (C) Digital Mars 2000-2003. All Rights Reserved.


🌈 SEE ALSO 🌈


mwah πŸ’‹ β€” source/version: Digital Mars, date: 2006-03-12, manual: OBJ2ASM(1). byeee 🫢

πŸ“¦ where this page comes from