Hacker News new | ask | show | jobs
by adrian_b 13 days ago
If you have bytes that are known to be CPU instructions, disassembling them is indeed trivial.

But from where can you get such bytes?

Normally such bytes can be obtained only from a binary executable file, by what you called "reverse engineering", though complete reverse engineering includes a lot of work beyond identifying the machine instructions inside a binary file and disassembling/decompiling them.

I cannot imagine what source of bytes that are machine instructions do you have in mind, otherwise than those that must be obtained through reverse engineering.

If you generated yourself the binary file, there is no need to disassemble it, because any high-level language compiler provides upon request the corresponding assembly language program.

1 comments

> by what you called "reverse engineering"

No, with reverse engineering I meant arriving at some readable code in a programming language.

But I had both misread what you wrote and was mistaken, even simply translating bytes in an executable to assembly is not trivial; I last dealt with it long enough that I misremembered it, and its issues didn't come to mind.