answersLogoWhite

0


Best Answer

<p>You may know, in early days when there was no memory, once the program was written, they(computer scientists) fed input to the machine using switches and levers. That is , there is no interface between human and a computer. In this case , only people who were scientists,researchers could operate the computers. It was not possible for a common man to know about it. Also , its very hard to learn,understand,handle those machine ,even to people who are scientist etc.

As there was no memory, they had to fed the same intruction( thru switches and levers) whenever they need to solve the same problem.After the memory was found, the programs were stored in the memory(physical memory of the machine or like RAM), and were executed. At this times, older input techinques were modified according to it. Later assembly language( Mnemonics ) were used write instructions and these instructions were then translated into voltages (machine level code). Here, The technique Abstraction was used to cover the complexity of interacting with hardware. Even though it made work easier than before. It was too somewhat difficult to write programs in assembly language since the commands are difficult to remember. Also , each processor had its own assembly language. So that program written for one processor could not be used in another. This increased the difficulty to remember commands for different machines. Also, a program called "assembler" that translates assembly language to machine code also differed from machine to machine. On those days, writing assemblers was a nightmare and was badly difficult to design and implement. In assembly language only one instruction took chance to be translated and executed. So, it consumed more time to execute a program. All these drawbacks stimulated computer scientists to think for the alternatives. On each stage of this improvement, inventions in physics,electronics, mathematics were also made to improve the components of the machine. These technological improvements also increased the neccessity to replace the older techniques.

This is like two persons who know different languages, are trying to communicate each other.<p>

<p>

Later, high level languages were found so that its commands are in simple english words and can be remembered easily. It completely vanished the direct interaction with the hardware components. Its corresponding interface program is Interpreters/compilers( which is also a program) that translates the high level programs to the machine level code.

<p>

From the above discussion its clear that , in order to reduce the difficulties in communicating with the machine, one/more layer/s of abstraction is/are needed. That is, an intermediator is created and behaves as an interface between the programmer/user and the machine. This facilitates the programmer/user to interact with the machine and vice versa.So, Intended task is completed reliably and easily.

for example, its like a communication: English Speaker <--> Translator <--> French Speaker.

Also code written in High level language is optimized so that it keeps the size of the machine code small.

You can dig more under the titles : Compiler Design , The principles of programming languages.

Hope You got it.

User Avatar

Wiki User

โˆ™ 10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

โˆ™ 11y ago

A high level language is one in which the algorithm (what the program is meant to do) is expressed in terms that a human programmer finds easy to understand.

Computers are made from thousands of electronic switches which when given a certain input pattern of "on" and "off" on a set of wires (called a buss) will return a predictable pattern at the end of a set of clock cycles. Computers therefore speak "binary" (1's and 0's) and the high level algorithm needs to be converted (compiled not translated) into this binary machine language before the computer can process the instructions.

This answer is:
User Avatar

User Avatar

Wiki User

โˆ™ 9y ago

Not all computer languages need to be compiled. Some are simply interpreted. Some are both compiled and interpreted. However, all languages must be converted to machine code before they'll run. Compiled languages convert the entire program to machine code while interpreted language convert one statement at a time. Java is both compiled an interpreted -- the compiler produces byte code suitable for interpretation by the Java virtual machine.

This answer is:
User Avatar

User Avatar

Wiki User

โˆ™ 7y ago

Machine language is, as the name suggests, the native language of the machine. More importantly, it is the only language that is actually "understood" by the machine. The machine does not understand any of the high-level programming languages; it doesn't even understand its own low-level assembly language! They are all "foreign" languages as far as the machine is concerned, and all must be converted into machine code before the program can be executed.

This answer is:
User Avatar

User Avatar

Wiki User

โˆ™ 7y ago

Simply because - all computers work in binary... no matter what language the program is written in. High-level programs must be converted to machine language to allow the computer to process the commands.

This answer is:
User Avatar

User Avatar

Wiki User

โˆ™ 13y ago

The program written in high level language (source code) is not in a language that the computer can understand. It is converted into a binary (executable) through the process of compilation.

This answer is:
User Avatar

User Avatar

Wiki User

โˆ™ 10y ago

Compiler help us to verify the error

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why must programs written in a high level language be translated into machine language before they can be run?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

The Language of Computers Programs are written in?

machine language


What is low level programing languages?

The programs written in Machine codes (like hexadecimal codes) are the Low level programs. These are understood only by the Microprocessor they are written for and written on. Whereas the High level programs are written in English like languages which are human redable.


Where is programs written in machine language are stored?

i think in RAM. Or ROM. Or CD-disk. Etc.


Why can't we use English in programming?

Computers don't understand English. All programs must be written in machine code -- the native language of the machine. Programs written in high-level languages must be converted to machine code in order to be executed. We can write machine code programs to perform the conversion for us. These programs are called compilers or interpreters.


Why are few programs written in binary form?

The lower-level the language, the harder it is to write programs in. It takes a long time to write a program in machine language...and it is way more trouble than writing it in an abstracted language.


Short note on high level language?

Generally languages are used for communication, In the case of computers languages are used to communicate with the Hardware. Language consist of set of rules and syntaxes to frame the valid instructions to work with the Machines.


What other language was the bible originally written in Before being translated to English?

What other language was the bible originally written in Before being translated to english?


What is translator in computing?

Translator is defined as a computer program that converts instructions written in one language to another without changing the initial logic in terms of computer 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.


Is C language readable?

No, but source-programs written in C language are.


Why high level language process slower than low level languages?

False. HLL-programs are compiler into low level (machine code), so they aren't slower. (Programs written in interpreted languages are indeed slower than compiled programs.)


Operating system came first or language in which it is written?

The earliest computers barely had operating systems, their programs were written in machine code - written and assembled by hand and then entered using punched tape, cards or using switches on the front panel.