Solved

ASM 2 C

Posted on 2000-02-18
5
671 Views
Last Modified: 2008-02-26
How to convert an asm source file to c ?
0
Comment
Question by:nosredna
  • 3
  • 2
5 Comments
 
LVL 86

Expert Comment

by:jkr
Comment Utility
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
 
LVL 86

Expert Comment

by:jkr
Comment Utility
Better: There is no general way to do this...
0
 

Author Comment

by:nosredna
Comment Utility
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
 

Author Comment

by:nosredna
Comment Utility
Adjusted points to 300
0
 
LVL 86

Accepted Solution

by:
jkr earned 300 total points
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

772 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

11 Experts available now in Live!

Get 1:1 Help Now