Posts

Showing posts with the label Low level programming

Basic Concept of Programming and GIGO

A computer performs task in the following concept 1. It takes input before proceeding form input devices 2. The computer perform necessary operation on data 3. The output is generated after the processing is completed So while doing programming you must provide input and provide instruction to perform some operation. The output will be generated as your instruction and should be displayed or perform. G igo Gigo is a term that defines about the performing procedure of a machine. It says that computer will produce the output not of your need, rather it will produce the output as according to the input provided. Garbage In-Garbage out, means that it will produce meaningless output, if you have provided wrong input. For example, the you want a program that produce the city name in alphabetical order but if you have provided the name of animals as input then the output will sort the name of animals in alphabetical order, not the name of cities.

Features of a good program

A program can be good by the following features: Portable  :    A good program must be able to run in any platform(Operating System).   Documented : A good program should be documented properly so that it will be helpful to the user of the program to use as well as other programmer to understand it and further make some useful changes in it. Clarity : The program should be well readable so that the program can be studied well. Flexibility : A good program should be flexible enough to handle most of the changes without having to rewrite the entire program.

Compiler and Interpreter

C ompiler translate high level programming language into machine level language so as computer can understand these language and performs the instruction given. It translates whole source code at once into object code. Compiler are only used in those programming language for which it is been designed.` Features It translates the whole source program into object code It saves times for the program to covert into machine language. Program can be compiled for one time and run for any time. I nterpreter is a translator which translates high level programming language into machine language. Each line of the programming language are translated with interpreter. It may take more time to write the code of the program but run efficiently. Features Translates source code into intermediate form It is time consumming Debugging time is saved 

Assembler

A built-in program that converts assembly language to machine language is known as Assembler. Machine cannot understand assembly language therefor it most be converted to machine language. The original assembly language program is known as source code and the converted code is known as object code. Functions of Assembler It translates mnemonics into machine code/object code. It helps to find out the bug in the source code.

Low Level Programming Language

Image
L ow Level Programming Language is the language that is close to Machine Understanding language. These languages are based on the architecture of Machine. There is no more abstraction for machine to understand these types of languages. It is simple but yet considered as very difficult language due to its complexity in remembering all the codes.