• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 698
  • Last Modified:

ASM 2 C

How to convert an asm source file to c ?
0
nosredna
Asked:
nosredna
  • 3
  • 2
1 Solution
 
jkrCommented:
Well, it depends on what it does - but most C compilers offer 'inline assembly code', so

void MyFunc( void)
{
__asm
{
/* your assember code here */
}
}

should do it...
0
 
jkrCommented:
Better: There is no general way to do this...
0
 
nosrednaAuthor Commented:
In truth i have an asm file which i need to know the source code in C, i. e. functions and parameters.
How to convert from asm to c language?
0
 
nosrednaAuthor Commented:
Adjusted points to 300
0
 
jkrCommented:
Ahh, you need a decompiler - check out

http://archive.csee.uq.edu.au/~csmweb/dcc.html

Quote from the page:

"Decompilation is a technique that allows you to recover lost source code. It is also needed in some cases for computer security, interoperability and error correction. dcc, and any decompiler in general, should not be used for "cracking" other programs, as programs are protected by copyright. Cracking of programs is not only illegal but it rides on other's creative effort. See the ethics of decompilation for more information. "

BTW: Though it's the best decompiler I've found on the web, the results will not be convenient to read, as there's no way to tell what the symbols (function's and variable's names) have been without having the debugging information...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now