In most cases the advantages of high level languages

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: language statements used by us in our dayto-day life. Hence they can be easily understood by a programmer familiar with the problem domain. As a result, very few or practically no separate comment statements are required in programs written in high-level languages. Due to this reason, high-level languages are also sometimes referred to as self-documenting languages. 6. Easier to maintain. Programs written in high-level languages are easier to maintain than assembly language or machine language programs. This is mainly because they are easier to understand and hence it is easier to locate, correct, and modify instructions as and when desired. Insertion or removal of certain instructions from a program is also possible without any complication. Thus, major changes can be incorporated with very little effort. Limitations of High-level Languages The two main limitations of high-level languages are as follows: 1. Lower efficiency. Generally, a program written in a high-level language has lower efficiency than one written in an assembly language or a machine language to do the same job. That is, programs written in high-level languages take more time to execute and require more main memory space. Hence, when a program's efficiency is very important, its performance critical parts are written in assembly language and non-critical parts are written in a high-level language. 2. Less flexibility. Generally, high-level languages are less flexible than assembly languages because they do not normally have instructions or mechanism to control the computer's CPU, memory and registers. An assembly language provides the programmers access to all the special features of the machine they are using. Certain types of operations, which are easily programmed using the machine's assembly language, are impractical to attempt using a high-level language. This lack of flexibility means that some tasks cannot be done in a high-level language, or can be done only with great difficulty. In most cases, the advantages of high-level languages far outweigh the disadvantages. Most computer installations use a high-level language for mo...
View Full Document

This document was uploaded on 04/07/2014.

Ask a homework question - tutors are online