Monday 20 February 2012

High & Low level Languages in Software


Low level languages are:

1 - Machine Language
2 - Assembly Language




High level languages are:

1 - Visual Basic
2 - Pascal
3 - Java
4 - C++


 High Level Language

A HighLevelLanguage is a ProgrammingLanguage that supports system development at a high LevelOfAbstraction, thereby freeing the developer from keeping in his head lots of details that are irrelevant to the problem at hand.
Starting a development effort at a high level of abstraction often leads to shorter development time since it retains opportunities to specialize the design, e.g. to adapt it to unforeseen insights into the ApplicationDomain or to incorporate changing requirements. It is usually harder to generalize a specific design than to specialize or extend the design, since unanticipated generalization may force the re-examination of many existing relations between the constituents of the system to identify hard-coded design decisions that may have been invalidated. However see PrematureGeneralization.
Starting a development effort at a low level of abstraction often leads to PrematureOptimization. Also see TopDownProgramming and BottomUpProgramming.
Working at a high level of abstraction does not necessarily preclude runtime efficiency of the implementation. Many modern languages (e.g. CeePlusPlus, CommonLisp, AdaLanguage) aim to provide access to low level elements of the implementation while retaining means to develop at a high level of abstraction. Most language implementations allow to drop out to a different language to implement specific parts of a system at a lower level of abstraction.
The term "High Level Language" was originally used to distinguish things like FortranLanguage from things like assembly language. Therefore, originally "high level language" very much included Fortran, Basic, COBOL, PL/I, and a little later, C.
Observing that such languages are not very high level compared with e.g. Prolog, YACC, Lex, ML, Haskell, etc, some people started calling the older high level languages "low level languages", or qualifying them as "higher level languages", etc. This is is often erroneously thought to be revisionism but is the very basis of much of Computer Science, and such terminology while not universally accepted among all programmers, is at least understood by those with a broad understanding of the relevant foundations of the topic at hand.
A more diplomatic approach to the topic, while sacrificing accuracy to appeal to the less-disciplined mind, would be to simply call more sophisticated languages "very high level languages", if a distinction is needed, rather than trying to snidely imply (or state outright) that there's no difference between assembler and Fortran, Basic, COBOL, PL/I, C etc.
No one who has done extensive programming in assembler would ever make the mistake of calling such things "low level languages"; there is a very sharp and painful difference.



 Low Level Language

In computing, a programming language designed for a particular computer and reflecting its internal machine code; low-level languages are therefore often described as machine-oriented languages. They cannot easily be converted to run on a computer with a different central processing unit, and they are relatively difficult to learn because a detailed knowledge of the internal working of the computer is required. Since they must be translated into machine code by an assembler program, low-level languages are also called assembly languages.
A mnemonic-based low-level language replaces binary machine-code instructions, which are very hard to remember, write down, or correct, with short codes chosen to remind the programmer of the instructions they represent. For example, the binary-code instruction that means ‘store the contents of the accumulator’ may be represented with the mnemonic STA.

In contrast, high-level languages are designed to solve particular problems and are therefore described as problem-oriented languages.


0 comments:

Post a Comment