0
objdump -S --disassemble Test> Test.s

Then

gcc Test.s

Apparently, it does not work.

Is there any option I can specify to objdump to get compilable assembly?

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
Samuel
  • 803
  • 8
  • 17

1 Answers1

1

What you are trying to do, is called "decompile". There are some languages which can be decompiled, Java being the best known of them, but C (or C++) are not decompilable.

Dominique
  • 16,450
  • 15
  • 56
  • 112