Previous in Forum: IPv6 Starts Today   Next in Forum: Program for Converting Files to Pulses
Close
Close
Close
4 comments
Rate Comments: Nested
Associate

Join Date: Apr 2011
Posts: 43

Converting .asm (Assembly) into C/C++ File

06/07/2012 3:33 AM

our machine has data in .asm (assembly language) and our engineers know C/C++. how can we convert this file from assembly to C. is there any progarm/decompiler or has to convert manually line by line, the program .asm is written on 60 pages.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru

Join Date: Sep 2009
Posts: 1056
Good Answers: 88
#1

Re: converting .asm (assembly) into C/C++ file

06/07/2012 6:15 AM

Most C/C++ compilers can also assemble inline code. Now if you want your programmers to maintain a possibly uncommented 60 pages asm listing they didn't write themselves, I say you are WAY too optimistic. S.M.

__________________
Life is complex. It has a real part and an imaginary part.
Register to Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#2

Re: Converting .asm (Assembly) into C/C++ File

06/07/2012 1:28 PM
__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
Guru
Popular Science - Weaponology - New Member Netherlands - Member - New Member Fans of Old Computers - Commodore 64 - New Member

Join Date: Sep 2007
Location: Japan
Posts: 2703
Good Answers: 38
#3

Re: Converting .asm (Assembly) into C/C++ File

06/07/2012 10:18 PM

seems like you have to convert it manually after reading this.

http://www.tek-tips.com/viewthread.cfm?qid=534625

__________________
From the Movie "The Big Lebowski" Don't pee on the carpet man!
Register to Reply
Guru

Join Date: Dec 2010
Posts: 1895
Good Answers: 44
#4

Re: Converting .asm (Assembly) into C/C++ File

06/08/2012 3:48 PM

Most any true assembly or machine language is compiled into a hexadecimal or (older) octal code, or even straight binary which cannot be interpreted by anything except a processor.

The structure that a human being needs to decipher such is the programming language from which it was derived. Once the language is compiled the pointers from the code are discarded. A processor does not need these pointers or formatting that a human being does.

Unless you are Neo or some other denizen of Zion, then you probably cannot "read" machine code the same way one "reads" a standard programming language.

Decompiling most code is nearly impossible, unless you wrote the original code and know where the data in the machine line goes. Then you can program a unique decompiler to reverse the programming.

Register to Reply
Register to Reply 4 comments
Copy to Clipboard

Users who posted comments:

cuba_pete (1); Epke (1); SimpleMind (1); SolarEagle (1)

Previous in Forum: IPv6 Starts Today   Next in Forum: Program for Converting Files to Pulses

Advertisement