Programming is the art of designing computer programs. When designing these programs, there are a number of procedural steps that need to be observed and laid down. Previously, systems used to operate by plugging and unplugging wires on the switch board which was more of a physical adventure than automated. However, with programming devices, systems got automated due to software advancements and creations and that is how digital technology came into being courtesy of programming.
Computers work by running a set of instructions called Programs (software or codes). Programming involves creation of computer programs to solve a particular task. When creating computer programs, one is likely to use programming languages which create a platform to create programs. A programming language is a special set of symbols that can be translated into machine readable form by the computer when arranged in a particular sequence or order. Each language has a special sequence or order of writing characters usually referred to as syntax.
- Years 50: Creation of high-level languages (closer to humans).
Ada Lovelace and Babbage and its nephew were writing programs for the
project of "difference engine", and then the "analytical
Follow this web address to learn more about evolution of programming languages: http://www.scriptol.com/programming/history.php
This is the program code that the programmer enters in the program editor window that is not yet translated into machine readable form. The source program is usually created using a particular programming language like Pascal, C, C++, Visual Basic, Java e.t.c.
This is program code that is in machine readable form. A source code that is not in machine readable form must be translated into object code.
This refers to language processors such as assemblers, interpreters and compilers that convert the source program into object code.
An assembler translates assembly language into machine language that the computer can understand and execute.
An interpreter translates the source program line-by-line, allowing the CPU to execute one line before translating the next. The translated line is not stored in the computer memory. It means that every time, the program is needed for execution, it has to be translated. This method of translating programs was very common in early computers that did not have enough memory to store the object code as a file that can be executed later.
A compiler translates the entire source program into object code. The object code file can be made into full executable program by carrying out another process known as linking which joins object code to all the other files that are needed for the execution of the program. After the linking process, an executable file (application file) is generated. This file is stored on a storage media such as a disk with a name that has a unique extension (.EXE).
Differences between interpreters and compilers
Notes and Revisions > Computernotes > ComputerForm3 > 3. ELEMENTARY PROGRAMMING PRINCIPLES >