Solved

Decompiler for 8051 or 8052 from bin files

Posted on 2006-07-18
3
3,688 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now