dmd/compiler/docs/man/man1/obj2asm.1
2022-07-09 18:53:07 +02:00

71 lines
1.3 KiB
Groff

.TH OBJ2ASM 1 "2006-03-12" "Digital Mars" "Digital Mars D"
.SH name
obj2asm \- Digital Mars .OBJ file disassembler
.SH SYNOPSIS
.B obj2asm
[-l]
[-o]
[-x]
.I objfile
.I [srcfile]
[-c\fI[outfile[.cod]]\fR]
.SH DESCRIPTION
.B obj2asm
disassembles object (.o) files in Intel OMF, Microsoft
COFF format, or linux ELF format.
.SH OPTIONS
.IP -l
Omit code labels in the assembly language file it
generates.
.IP -o
Emit object code for each assembly language instruction.
.IP -x
Emit code segment offset for each instruction.
.IP \fIobjfile\fR
The object to disassemble.
.IP \fIsrcfile\fR
Use this if the source file name embedded in the object
file is missing or incorrect.
.IP -c\fI[outfile[.cod]]\fR
Writes output to
.I outfile
instead of the standard output. The default extension for
.I outfile
is \fB.cod\fR.
.SH EXAMPLE
To see the code generated by compiling test.cpp, use the
following commands:
.PP
.PD 0.5
dmd -c -g test
.LP
obj2asm test.o
.PD
.SH BUGS
Although the output of obj2asm is in MASM format, it
usually requires a little editing before MASM will accept
it.
.SH AUTHOR
Written by Walter Bright
.UR https://www.digitalmars.com/ctg/obj2asm.html
www.digitalmars.com/ctg/obj2asm.html
.UE
.PP
Copyright (C) Digital Mars 2000-2003. All Rights Reserved.
.SH "SEE ALSO"
.BR dmd (1)