Alex Aparin
Alex Aparin

Reputation: 4512

How to run IlDasm on .obj files?

I have compiled .obj files from c++/cli compiler (.obj files were compiled from source with /clr option). Docs (https://learn.microsoft.com/en-us/dotnet/framework/tools/ildasm-exe-il-disassembler) says that is possible to run ildasm to see some metadata of .obj files. But command ildasm /metadata foo.obj says error with message - ildasm supports only PE files in graphic mode. Ildasm was taken from msvc 2015. What's wrong with my command?

Upvotes: 0

Views: 234

Answers (1)

tmac
tmac

Reputation: 85

The docs provided are a bit obtuse, but basically you cannot ildasm on an object file--in graphical mode.

However, according to: here

You can run ildasm.exe on object files in text-mode.

ildasm /text /tokens myobject.obj

Upvotes: 2

Related Questions