Solved

Decompiler for 8051 or 8052 from bin files

Posted on 2006-07-18
3
3,817 Views
Last Modified: 2013-12-13
Does anybody know any decompiler / sourcer which gets the 8051 or 8052 binary (.bin) rom files and generates ANSI C source code?
0
Comment
Question by:Ali Fakoor
  • 2
3 Comments
 
LVL 15

Expert Comment

by:bpmurray
ID: 17137902
It's very unlikely that you can return it to C, although if the symbol information hasn't been stripped it may be possible. On the other hand, it's relatively easy to disassemble the ROM contents to asm source. If you're simply trying to understand hoe things are done, the asm solution may be enough - the op code set for these processors is pretty small, and the instructions are relatively simple.
0
 
LVL 5

Author Comment

by:Ali Fakoor
ID: 17139925
Well,

1) The bin file ofcourse doesn't contain the debugging and browsing information
2) Also a good sourcer for ASM witch generates well styled Assembly source code out of the .bin file is interesting as well (if anyone could introduce some)
3) I need just a C reperesentation of that assembly, not the original source code. But I need that the decompiler be aware of 8051/8052 and generates the syntaxes according to the registers of such platform (with names )with their friendly names, etc so that It could generate a well-reading reperesentation of the bin file.

Thanks
0
 
LVL 15

Accepted Solution

by:
bpmurray earned 125 total points
ID: 17141006
I just did a Google search for a disassember, and there appear to be a lot of the around. This even has the C source: http://www.bipom.com/dis51.shtm

The problem with recovering C from the assembler source is that the compiler has optimised the code before writing the bin file. In other words, the bin file will not contain all the original information. This makes it very difficult to decompile.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question