OBJ2ASM(1)
π 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 tooutfileinstead of the standard output. The default extension foroutfileis.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
- opensuse-leap 16.0: dmd 2.109.1-bp160.1.5 Β· BSL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms