<!– google_ad_section_start –>
CSC
VBC
CLR MACHINE CODE
.Net provides you two features like
1.Platform Independency
2.Language Independency
.Net has been developed for two major reasons
1.To complete with java
2.To Overcome the drawbacks of its own technology of COM(Component Object Model)
Platform Dependency:
It typically refers to applications that run under only one operating system and run in only one series of computers (one operating environment); for example, Windows running on x86 hardware or Solaris running on SPARC hardware. Sometimes, it means the same as "hardware dependent" or "machine dependent" and refers to applications that run in only one hardware series with the operating system not being relevant.
In contrast, "platform independent" means that the application can run in different operating environments. Applications written in Java are a prime example.
In contrast, "platform independent" means that the application can run in different operating environments. Applications written in Java are a prime example.
DrawBacks of Platfform Dependency:
Plaftform Independency:
.Net source code is first compiled to a CIL code which makes it platform independant.If yes, then why don' t .net applications run on all Operating systems like Linux?
Can anybody also explain who executes or compiles the CIL code.I am going nuts about them..can anybody explain in a simple understandable manner how all this conversion works.
Can anybody also explain who executes or compiles the CIL code.I am going nuts about them..can anybody explain in a simple understandable manner how all this conversion works.
PLATFORM INDEPENDENCY IN CASE OF .NET:
When microsoft introduced .net interms of platform independence.It has the adopted the same approach prescribed by java.
.Net SOURCE CODE----> COMPLIED---> CIL CODE
CIL CODE--à CLR --à MACHINE CODE
CIL -à Common Intermediate Language
CLR--à Common Language Runtime
Note:
The CLR is dependent on OS where we require a separate CLR for each OS
C#.Net
|
CIL CODE
|
VB.NET
|
ANY OTHER LANGUAGES
|
NOTE:
CLR Is Capable of understanding only the IL Code but not any .net language code.
LANGUAGE INDEPENDENCY:
.Net language Provides this features which allows the code written in one .net language to be consumed in any other .net language after compilation which is known as language independency or interoperability
Note: The independency is provided only across the .net language.
Ø Who is responsible in the execution of IL code on the target System
.Net framework which is software designed by microsoft is responsible for execution ofcode in the target system.
FrameWork is a software which will mask the functionalities of Os and makes the code to execute under its control which provides you platform independency,Code Security and Better memory management.
The developed of .net framework has been Started at late 90’s under the name of NGWS(NEXT GENERATION WINDOWS SERVICES)
In the process of developing the framework microsoft has first prepared a set of specifcation known as CLI Specifications.
CLI---àCommon Language InfraStructure
The Specification are Open and Standardized under ISO/ECMA
ECMA-àEuropean Computer ,Manufacturer Association.
Ø The CLI Specification prescribes th following
1.CLS-àCommon Language Specification
2.CTS-àCommon Type System
3.BCL & METADATA-àBase Class Libraries
4.VES-àVirtual executing System
Ø Is .Net Platform independent ?
.Net is theortically Platform independent as per the CLI Specifications but not Pratically as the framework as not implement for all OS
Microsoft started development on the .NET Framework in the late 1990s originally under the name of Next Generation Windows Services (NGWS). By late 2000 the first beta versions of .NET 1.0 were released.
<!– google_ad_section_end –>
No comments:
Post a Comment