Is there any way to get the source code by using object file in C?
For example I have a source code simple.c
cc simple.c
Now I have a.out (object file). By this a.out whether can I get the source?
code of simple.c
An object file is a partial machine language program. It is designed to be linked to other object files to produce an executable file. You cannot run an object file by writing its name as a command.
Check out the binutils package. In it you'll find objdump - display information from object files. Then try running objdump -d xyz.o .
Source code is generally understood to mean programming statements that are created by a programmer with a text editor or a visual programming tool and then saved in a file. Object code generally refers to the output, a compiled file, which is produced when the Source Code is compiled with a C compiler.
No. Turning a cow into hamburger is fairly easy. Turning hamburger into a living cow, somewhat more difficult.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With