Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

howto examine c++ .o file under linux?

Tags:

c++

object

linux

how can i examine a c++ .o file unter linux? is there any program with which i could easy examine it?

like image 494
ewggwegw Avatar asked Jan 14 '11 12:01

ewggwegw


People also ask

What are .o files in Linux?

A file ending in .o is an object file. The compiler creates an object file for each source file, before linking them together, into the final executable.

What is a .O file C?

An O file is a compiled C program object. Some C compilers create O files during the executable (. EXE) creation process. O files themselves are typically not executable. When compiling a C program, compilers first transform all the program's source code files into compiled object files.

How do I view an O file?

The best way to open an O file is to simply double-click it and let the default assoisated application open the file. If you are unable to open the file this way, it may be because you do not have the correct application associated with the extension to view or edit the O file.

Can you run .O files?

An object file ( .o ) is not executable. You want to be running ./demo_fully_homomorphic (e.g. the file without extension). Make sure you have execute permissions ( chmod a+x demo_fully_homomorphic ).


1 Answers

objdump is the command to analyze object files.

What do you want to check, exactly?

like image 117
peoro Avatar answered Oct 07 '22 15:10

peoro