answersLogoWhite

0

Why is it impossible to optimize high level language code?

Updated: 8/18/2019
User Avatar

Wiki User

14y ago

Best Answer

It is not impossible to optimize high level language code. It is just a matter of the compiler being able to track the effect of the various statements in the program, and determine the various optimizations that are required. Yes, it is more complex, but it is very possible to optimize high level language code. In fact, modern compilers are so good at optimization that the programmer's attempts to optimize code, while well intended, are of smaller and smaller effect.

Don't misunderstand - even though the compiler does a good job of optimization, that does not eliminate the programmer's responsibility of writing good code.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why is it impossible to optimize high level language code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why assembly language is called low level language?

Because it cannot be understood by users. High level language like C can be understood by the user by looking at its source code. But assembly level language does not have any source code, its a language converted from high level language to low level language (assembly level language or machine level language) so that the language which the user could read/understand can also be read/understand by the machine.


Code for level 1000 Pokemon on Pokemon pearl?

its impossible to do that


How do you convert higher level language into lower level language?

Not only can we but we have to! Machine code is the only language understood by the computer, thus all languages, both low and high level, must be converted to machine code in order to execute. Most compiled languages can produce low-level symbolic code (assembly language), but not all, especially those that compile to byte code rather than machine code. However, all code has to be compiled or interpreted to machine code at some point and machine code can be disassembled to produce low-level symbolic code.


Is logo high level language?

Yes. Any language that does not closely resemble the machine code is a high-level language. The more abstract the language, the more high-level it is and the more complex it is to translate into machine code. Logo is highly abstract; it bears no resemblance whatsoever to machine code, therefore it is high level.


What is mean by a one to many relationship when comparing a high level language to machine language?

It is meaningless. The term 'high-level language' implies a high-level of abstraction between the source code and the resultant machine code. In order for there to be a one-to-one relationship between the source code and the machine code, there must be little to no abstraction; the source language must be low-level. Assembly language is a low-level language with little to no abstraction.


Which wii give High-level programming language from machine language?

You cannot convert machine code to high-level language. It's a one-way process. The best you can do is disassemble a machine code program, producing code similar to assembly language.


Examples of Low-Level Programming Language?

Machine code & Assembly language.


What is an example of a low-level language?

Machine code.


What is OPCodes?

op code is high level language


What Machine language is an example of a high-level language.?

There is no program that can translate machine code to a high-level language. The best you can do is disassemble the code. This produces code that is similar to assembly language, but which lacks variable names and comments. Even a skilled programmer will need to spend hours disentangling the code in order to make it readable -- but you can never restore the code back to its original source code, no matter what language it was written in.


What translates a machine language into a high language?

Nothing can translate machine language into a high-level language. At best you can disassemble the machine code. A skilled disassembler can use the resultant disassembly to produce a low-level assembly language source code but it is not possible to reproduce the original assembly language source let alone the original high-level language source. Remember that once the high-level source has been compiled, all user-defined names (namespaces, class names, function names and variables) and all user-comments are completely stripped out, the compiled code is optimised and linked, such that the final executable is "spaghetti" in nature. It's simply impossible to "disentangle" the code to reproduce the original high-level structures let alone reproduce any of the procedures and objects used by the original programmer.


Why is assembly language known as a low level language?

The level of a language is an indication of how abstract it is compared to the machine code it produces. The higher the level, the further it is from the machine and thus the more abstract it is. Assembly language has a near 1:1 translation to machine code with very little in the way of abstraction, thus it is a low-level language.