Is it possible to convert low level languages to high level ones?
We know a compiler can convert h开发者_如何学Pythonigh level languages to lower ones,like convert C to assembly.
But is it possible the other way around?
To a point, yes. They are called decompilers.
http://en.wikipedia.org/wiki/Decompiler
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.
精彩评论