Question

I already tried this, I opened a a.out file with a text editor but I get only a bunch of characters with some instructions in it like:

üÙ

Was it helpful?

Solution

Try hexdump. Something like:

$ hexdump -X a.out

It will give you just that: an hexadecimal dump of the file.

Having said that, another possibility might include using GDB's disassemble command.

OTHER TIPS

Lookup your local friendly Hex Editor.

To see the disassembly (with opcode bytes) of the code only, not including any file headers:

objdump -d a.aot

Executable files come in several formats. For Unix/Linux it's ELF: http://en.wikipedia.org/wiki/Executable_and_Linkable_Format

For Windows it's PE: http://en.wikipedia.org/wiki/Portable_Executable

Use the objdump tools to see the opcodes as others have pointed out

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top