financialpax.blogg.se

Convert hex file to c code
Convert hex file to c code




convert hex file to c code

Additionally they are commonly not sorted lexically, for example I found GCC using some kind of hashing algorithm. Be aware that the order of variables in memory might not depend on their appearance in the source, but on their name.Be aware that the order of functions in the resulting code might not depend on their appearance in the source.These names are gone after compiling and linking. The names of functions and variables can't be reconstructed exactly.You need deep understanding about the translation from C into machine code.Repeat editing your source until both disassemblies are equal.

convert hex file to c code

Disassemble this HEX file, and compare the output with the reference.Compile, link and convert it into a HEX file, too.Start with the best approximation of the source that your memory still holds.You might need some options to have all constant data in the output. It takes several hours, for example some 20 hours for a 100-liner in BASCOM. I did this more than one time with AVR code, written in C, BASCOM, or C++ (Arduino). The bad news: But it's a lot of work, depending on the size of your application. The good news: It is possible, definitively.






Convert hex file to c code