Is it possible to convert low level languages to high level ones?

2.7k views Asked by At

We know a compiler can convert high level languages to lower ones,like convert C to assembly.

But is it possible the other way around?

2

There are 2 answers

2
gkoreman On

To a point, yes. They are called decompilers.

http://en.wikipedia.org/wiki/Decompiler

0
corsiKa On

With the proper mappings of inputs to outputs ANY language can be converted to ANY OTHER language, assuming the mechanisms exist to map every feature of each.

The practicality of such tools are debatable, and the readability/maintainability of the resulting code is simply awful.

But you're talking theory, and yes it is theoretically possible to map ANY language X to ANY OTHER language Y.