• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Assembly Language to C programming language?

Status
Not open for further replies.

BeeBop

Active Member
There is a good article in "The Firmware Handbook" (Jack Gansel ed. Newnes 2004) called "Understanding Your C Compiler," written by Jakob Engblom (IAR compiler developer) which points out the steps a compiler takes to make a machine executable. If you read that, you will begin to understand why a 'decompiler' is not practical.
 

Torben

Well-Known Member
There is a good article in "The Firmware Handbook" (Jack Gansel ed. Newnes 2004) called "Understanding Your C Compiler," written by Jakob Engblom (IAR compiler developer) which points out the steps a compiler takes to make a machine executable. If you read that, you will begin to understand why a 'decompiler' is not practical.
Hi BeeBop,

Not sure who you're talking to here, but decompilers are indeed practical and there are lots of them out there.

Now, a decompiler which produces readable output and scales well--that's another question entirely. :) And a round-trip decompiler (where you actually get back the original source code) would be like unburning paper unless special provisions were made to support it in the original compiler.


Torben
 

BeeBop

Active Member
Hi BeeBop,

Not sure who you're talking to here, but decompilers are indeed practical and there are lots of them out there.

Now, a decompiler which produces readable output and scales well--that's another question entirely. :) And a round-trip decompiler (where you actually get back the original source code) would be like unburning paper unless special provisions were made to support it in the original compiler.


Torben
It was only my 2 cents added to the thread. So what you are saying is that an unreadable output it practical? :D

I remember trying out a 'decompiler,' some time back. I found it much easier to take the hex file, line by line, and disassemble it manually. :)
 

Torben

Well-Known Member
It was only my 2 cents added to the thread. So what you are saying is that an unreadable output it practical? :D
For various values of "practical". ;)

I remember trying out a 'decompiler,' some time back. I found it much easier to take the hex file, line by line, and disassemble it manually. :)
Yeah, that's pretty much been my experience too--although I've done more with disassemblers than decompilers. Disassemblers have the advantage of actually being useful.


Torben
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top