Programming Languages
Programming Languages
- A programming language is a set of symbols in computer language that are used in coding
computer programs.
- A programming language is a specially written code used for writing application programs
e.g. C, Pascal, COBOL, BASIC, Visual Basic, C++ and Java (Originally for intelligent
consumer-electronic devices (cell phones), then used for creating Web pages with dynamic
content, now also used for developing large-scale enterprise applications)
- Program: a set of detailed and unambiguous instructions that instructs a computer to perform
a specific task, for example, to add a set of numbers.
- Programming: A process of designing, coding and testing computer programs
- Programmer: A person who specialises in designing, coding and testing computer programs
- Problem: any question or matter involving difficulty or uncertainty and is proposed for a
computer solution.
b. Assembly Language:
- These are programming languages that use mnemonic codes in coding programs.
- Mnemonic codes are abbreviations used to represent instructions when coding assembly
language programs, for example, LDA for Load, ADD for Addition, etc.
- One assembly language statement is equivalent to one machine code instruction and
therefore programming lengthy and time consuming.
- However, assembly language programs are efficient.
- Programs also run faster as they are closer to machine language and therefore are used in
designing programs that needs efficient timing, e.g. games like chess, operating systems,
etc.
- Assembly language is used when there is need to access registers and memory addresses
directly.
- Assembly language instructions also occupy very little disc storage space.
- Mnemonic codes are very close to machine code, hence are low level language assembly
language codes.
- They however run on specific computer architecture since they are hardware aligned.
- They also contain different forms of instruction, e.g. jump, control, arithmetic, etc.
- Assembly language allows immediate, direct and other forms of memory addressing.
Application: Assembly language is used in:
- Coding operating systems
- Coding device drivers
- Coding programs for embedded systems like DVD players, decoders, etc.
- Coding encryption software
- Programs written in High Level Language are first converted to machine code before
running.
High level languages have the following features:
- Problem oriented (Machine independent): they are designed to solve an application
problem and therefore runs on any machine
- They are portable: they can be transferred from one machine to another and run without
problem.
- Instructions are written in English statements which are easier to understand.
Disadvantages of HLL
- Takes long to run since they need to be first converted to machine code.
- They occupy a lot of disk storage space as compared to low level languages.