howto examine c++ .o file under linux?
how can i examine a c++ .o file unter linux? is there any开发者_Python百科 program with which i could easy examine it?
objdump
is the command to analyze object files.
What do you want to check, exactly?
A .o
file is the translated output from compilation. It is not C++, even if the source code that generated it was written in C++. You could get an .o
file from the compilation of source of any programming language.
Use objdump
to look at .o
files.
You could also use the nm
command.
精彩评论