This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

convert hex file into c language or assembly language

Respected Sir,

I would like to know how we can convert hex file into c language back. and by which software can be done.

thanks

  • This is called decompilation. In most cases, it can't be done in a satisfactory way. Basically, the conversion from C to machine code is one way.

  • Sorry - if someone farts, you can't make use of the gas to recreate what they did eat. You might guess at pea soup but you will not really know for sure.

    The hex files have lost the structure from the original C source code. You can reverse-engineer the data by figuring out what hex code represent machine code instructions and what hex code represents variable contents. But from there, it will take significant amount of work to try to figure out which machine instructions that was generated by different loops etc in the C source code - especially since the compiler is free to perform lots of rewrites before it finally emits the machine instructions.

  • if someone farts ...

    This forum has really reached the bottom with that one :(