Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting assembly code to C code [closed]

What process can be used to convert assembly code into equivalent C code? What kind of tools can be leveraged for higher result accuracy?

like image 914
Brian Avatar asked Nov 02 '10 19:11

Brian


People also ask

Can I convert assembly code to C?

You can't deterministically convert assembly code to C. Interrupts, self modifying code, and other low level things have no representation other than inline assembly in C. There is only some extent to which an assembly to C process can work.

How do you convert assembly code?

Assembly code is converted into executable machine code by a utility program referred to as an assembler. The conversion process is referred to as assembly, or assembling the source code.

What converts an assembly program into machine code?

An assembler converts assembly language into machine language.

What does a disassembler do?

A disassembler is software that converts machine language instructions into assembly language instructions (also known as reverse engineering). As the term implies, a disassembler performs operations that are the inverse of operations performed by an assembler.


1 Answers

You cannot go backward to the original C but can do a static binary translation into C that is equivalent to the machine instruction.

like image 105
old_timer Avatar answered Oct 13 '22 01:10

old_timer