Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - objtoasm http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                              OBJTOASM

OBJTOASM is a program to disassemble .obj files. It is most useful for
generating  mixed source/assembly output so you can examine  the  code
generated by the compiler.

Usage
OBJTOASM objfile [srcfile]
where  objfile  is the .obj file (the extension is  assumed).  If  the
object file contains line number information, it will merge the  lines
from srcfile into the output at the appropriate places. If srcfile  is
not  specified on the command line, OBJTOASM will look at  the  module
header  information  in the object file to determine the  source  file
name.

The output is written to the standard output, which can be  redirected
to a file:

OBJTOASM test test.asm
OBJTOASM will recognize debugging records in the object file and  will
produce a formatted listing of them.

Example
To see the code generated by compiling test.cpp:
ZTC -c -gl test
OBJTOASM test test.asm

Notes
The  output  cannot  be  assembled without  some  hand  editing.  Data
segments are ignored.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson