Solved

Decompiler for 8051 or 8052 from bin files

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

775 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