• A programming language is a computer language that is used
by programmers (developers) to communicate with computers. It is a set of instructions written in any specific language ( C, C++, Java, Python) to perform a specific task. • A programming language is mainly used to develop desktop applications, websites, and mobile applications.
Axis Institute of Higher Education, Kanpur
Types of programming language • Low-level programming language( Machine Language)
• Middle Level Language (Assembly Language)
• High Level Language( Java, Ruby, Pascal, PHP etc.)
Axis Institute of Higher Education, Kanpur
Low-level programming language • Low-level language is machine-dependent (0s and 1s) programming language. The processor runs low- level programs directly without the need of a compiler or interpreter, so the programs written in low-level language can be run very fast. Machine language is easier to read because it is normally displayed in binary or hexadecimal form (base 16) form. It does not require a translator to convert the programs because computers directly understand the machine language programs. • The advantage of machine language is that it helps the programmer to execute the programs faster than the high-level programming language. Axis Institute of Higher Education, Kanpur Middle-level programming language • Assembly language (ASM) is also a type of middle-level programming language that is designed for specific processors. It represents the set of instructions in a symbolic and human-understandable form. It uses an assembler to convert the assembly language to machine language. The advantage of assembly language is that it requires less memory and less execution time to execute a program.
Axis Institute of Higher Education, Kanpur
High-level programming language • High-level programming language (HLL) is designed for developing user-friendly software programs and websites. This programming language requires a compiler or interpreter to translate the program into machine language (execute the program). • The main advantage of a high-level language is that it is easy to read, write, and maintain. • High-level programming language includes Python, Java, JavaScript, PHP, etc. Axis Institute of Higher Education, Kanpur What is Compiler • A compiler is a language translator that converts high level programs into machine understandable machine codes. In this process, the compiler converts the whole program to machine code at a time. If there are any syntactic or semantic error, the compiler will indicate them. It checks the whole program and displays all errors. It is not possible to execute the program without fixing those errors. Programming languages such as C, C++ uses a compiler for language conversion. The execution time is lower in these languages. Therefore, they are considered fast languages. Axis Institute of Higher Education, Kanpur What is Interpreter • An interpreter is also a language translator that converts high level programs into machine codes. Unlike compilers, interpreters convert the source code to machine code line by line. As it checks line by line, the scanning time is lower. But the overall execution time is higher. • Interpreter displays an error at a time. The programmer should fix that error to interpret the next line. Programming languages such as Python, Ruby, PHP, Perl are some examples of interpreter-based languages.
Axis Institute of Higher Education, Kanpur
What is Assembler • In addition to high level languages and machine language, there is another language called the assembly language. Assembly language is in between the high level languages and machine language. It is closer to machine language than high level languages. It is also called low level language. This language is not easily readable and understandable by the programmer like a high level programming language. The assembler works as the translator in converting the assembly language program to machine code. Axis Institute of Higher Education, Kanpur Thank you Axis Institute of Higher Education, Kanpur