LOGIN
Xalman Khan
STUDENT
 · RawalpindiPakistan
Edit
Delete
Share
Report
QUESTION
  ·  Mark as Answered

HELLo to World!!! Is it Possible to make an Algorithm that can convert assembly instructions(machine code ) into C code or any other high level language code???

2 likes 
Like
Share
Mert Torun
Product designer
 · IzmirTurkey
Edit
Delete
Share
Report

It is technically possible to map a low level language 1:1 into a higher level language, and very easy, assuming that there’s a library that passes those commands directly through. But that is practically not really useful at all. It is not more readable or concise than the assembly code itself.

If you want to reduce multiple assembly instructions into their single-expression high-level equivalents, then that gets tricky:

  • If you just want to extract the high level code from an executable whose compiler you already know, that is called decompiling and you get back some high level code but without meaningful variable names.
  • If you want to convert hand-written assembly code into a more concise and simple high-level code, then your best bet is to read the code, understand the intent, and replicate that with the high-high level language.
1 like 
Leave a reply...
DISCOVER
CHAT
ALERTS
-2
DISCUSSIONS
-1
FEED