Solved

Decompiler for 8051 or 8052 from bin files

Posted on 2006-07-18
3
3,864 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Introduction to Processes

688 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