Results 1 to 2 of 2

Thread: What is .Net Framework?????

  1. #1
    Join Date
    Dec 2007

    What is .Net Framework?????

    Your earlier languages compiled to assembly language. Typically for MS C++, this was the Pentium 4. Many processors could read this language, if not for a decrease in performance.

    With .NET this changed. Now all .NET languages compile* into what was known as MSIL (Microsoft Intermediate Language) but is now known as CIL (Common Intermediate Language). Expect to hear either acronym, as they both mean the same thing. Whether its C#, VB .Net, C++ CLI, or even Delphi, they all compile to this language. What is this language? Its a pseudo assembly language.

    This pseudo assembly language is unreadable by CPU's... so the .NET framework comes with another tool. The JIT (Just in Time) compiler. This is automatically ran when a program written in .NET is ran. It compiles ONLY the portion of the program you are using, hence, you could technically never compile portions of a program. Advantages? Disadvantages? Well, without going into too much detail, it boils down to this: It compiles to assembly language for the user's specific CPU, creating an increase in run time speed, although there is extra overhead to compile at runtime.

    The other staple of .NET is the GC (Garbage Collection). Professed to be the end of memory leaks, the GC runs in the background constantly monitoring your program and cleaning up unused memory. How does this work? Well, it watches when and if you ever reference a variable, and when it is no longer referenced it releases it. While it does clean up a lot of the variables, there are still some specific instances that the programmer will have to clean up after themselves, but these are far fewer than ealier languages. This also adds to the overhead.

    The final note I will touch upon with .NET is the libraries it incorporates. Many functions are already included with .NET and many programmers will find all they need within there. Very few functions have to be hard coded with WIM or other externals.

    Many state that .NET programs run slower than their C++ counterparts and many state the opposite. Their arguement stems from the GC and JIT portions of .NET. Where as the JIT does compile a faster running assembly code, the program has more running in the background to keep it going. Do the benefits outweigh the results? Thats a question for another day, but know that the answer probably lies in 'depends.' It probably depends on the program and what it is doing.

    *NGEN --
    The Native Image Generator (NGEN) can create versions of .NET precompiled to Assembly Language, and if the processor can use it, it will over the JIT version of it. This still incorporates the GC though, but it is faster than the JIT for the specific processors it is compiled to.

    Source :click here

  2. #2
    Join Date
    Apr 2009

    Re: What is .Net Framework?????

    NET Framework is a framework that can be used by an operating system Microsoft Windows and Microsoft Windows Mobile from version 5. A lighter version and comes with a limited runtime operating within a browser or a mobile device is available under the name of Silverlight . It is based on the standard Common Language Infrastructure (CLI) that is independent of programming language used. Thus all languages ​​compatible within standard CLI have access to all libraries installed (installable) in the execution environment.

Similar Threads

  1. Replies: 10
    Last Post: 05-05-2011, 10:43 AM
  2. Replies: 13
    Last Post: 06-02-2010, 02:51 AM
  3. JSF Framework Vs Spring Framework
    By Bottlenecked in forum Software Development
    Replies: 5
    Last Post: 30-01-2010, 09:41 AM
  4. Replies: 8
    Last Post: 11-07-2009, 02:24 PM
  5. Replies: 8
    Last Post: 16-03-2009, 07:59 AM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Page generated in 1,639,045,547.44821 seconds with 17 queries