People have misconception that .Net is a programming language but let me clear you first it is not a language. Let me explain you.
.Net is not a programming language its framework, under the .net framework we have many language. Talking about the .NET framework languages support; infact there are many(some 22, 23 languages)Some of them are: Visual Basic, C#, C++, Python, COBOL, Jscript, Eiffel, Java, Haskell, Pascal, ML, Ada, APL, C, C++, Perl, SmallTalk, Oberon, Scheme, Mercury, Oz, RPG, Objective Camlto name some of them.
What is IL, CIL, MSIL?
- As .net is collection of language, Programmer are given an option of developing their application by using any language of their choose but each and every language use a separate language compiler for program compilation.
- A program that is written by using a .net language, Once after compilation will be generating Intermediate Language(IL) code.Whatever language you compile all of language will generate IL code . The same program written using different .net language and complied they also will generate the same IL code. Let's take a simple example. Code written in C#
Above program have same logic but written in two different language. And the main point is that the both program will generate the same Intermediate Language(IL) code. So, we called this IL code as CIL(Common Intermediate Language) or MSIL(Microsoft Intermediate Language).
What is language interoperability ?
- All object oriented programming languages provide re-usability of code but only with in language where as .net languages provide cross language re-usability of CIL that is CIL code generated from one .net language can be reused from any other .net language in future and we call this as a language interoperability.
*Note:- If any two Language wants to interoperate with each other they need to cross two hurdles:-
- Mis-Match in Compiled Code
- Mis-Match in Data type.
.Net Overcome both the hurdles and one of the benefit over other languages. You can tell this point as a plus for .net languages
No comments:
Post a Comment