Introduction to Compiled Languages
Introduction to Compiled programming languages:
Compiler: is a type of translator, which scans, translates entire source code to machine code in single step. If any errors found in the code then it gives list of errors with their line numbers, which we can later debug and recompile.
C Programming Language: (CPP, Objective-C etc.)
Developed by: Mr. Dennis Ritchie
Developed at: AT & T Bell labs
Development year: 1972
Development purpose: implementing UNIX operating system
Features: Structured or procedure oriented, General purpose.
Influenced to: Embedded C, Objective-C, CPP, C#, Java, and more
Translator: compiler (GCC, TC)
Ex. code: code written in C programming language
x = x + y;
Pros of compiled programming languages:
1. Quite easy to learn, code, remember and understand
2. Provides list of errors for easy debugging
3. Faster execution, needs less memory, code optimization
4. Easy to represent real world entities, quiet reusability, extensibility and maintainability
5. Compiler need not present in every machine
6. Source code need not be shifted for execution on similar platforms (less source security)
7. Platform independent ( Source ) : Need not to readjust source code
Cons of compiled programming languages:
1. Platform dependent ( Binary ) : but need recompilation hence less platform independent
2. Takes more time for analyzing code.
To get benefits out of both compiler and interpreter, hybrid programming languages are designed.