Scroll to navigation

OBJ2ASM(1) Digital Mars D OBJ2ASM(1)

name

obj2asm - Digital Mars .OBJ file disassembler

SYNOPSIS

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

DESCRIPTION

obj2asm disassembles object (.o) files in Intel OMF, Microsoft COFF format, or linux ELF format.

OPTIONS

Omit code labels in the assembly language file it generates.

Emit object code for each assembly language instruction.

Emit code segment offset for each instruction.

The object to disassemble.

Use this if the source file name embedded in the object file is missing or incorrect.

Writes output to outfile instead of the standard output. The default extension for outfile is .cod.

EXAMPLE

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

dmd -c -g test

obj2asm test.o

BUGS

Although the output of obj2asm is in MASM format, it usually requires a little editing before MASM will accept it.

AUTHOR

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

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

SEE ALSO

dmd(1)

2006-03-12 Digital Mars