how can i view object code of c

Recommended Answers

All 5 Replies

Are you talking about binaries? If you are, what do mean view? Do you mean open a binary and view the hex or the original source code.

Are you talking about binaries? If you are, what do mean view? Do you mean open a binary and view the hex or the original source code.

how can i read the object files generated by the c compiler ?

If you're looking for the Assembly code and are using gcc, use the -S command line argument, and the output file will contain the code.

how can i read the object files generated by the c compiler ?

You can either open the files in a hex editor or you can download something to reverse engineer the code and display it as source code.

If you're using gcc, you can use objdump to examine object code files.
If you use Visual C++, you can use dumpbin.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.