[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Decompiler for 8051 or 8052 from bin files

Posted on 2006-07-18
3
Medium Priority
?
4,014 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:Al fa
[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:Al fa
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 500 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Introduction to Processes

650 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