Microsoft
Intermediate Language (IL)
Microsoft Intermediate Language is that it is not hidden in the depths
of the machine. IL is a full-fledged,
stack-based language a bit like assembly code that can be written by hand if
you’re feeling adventurous. There are also tools that enable you to disassemble
IL and view the contents of the system objects and your own code.
An
Introduction to.NET Memory Management
A .NET fact that has a lot of people interested, worried or just plain
dumbstruck is that .NET runtime memory management is a garbage-collected (GC)
system. Old programmers in particular have nightmares about the days of Lisp,
when waiting for the garbage collector was a painful experience because he only
came on Tuesdays. C++ programmers have had memory management drummed in to them
so hard that to relinquish control of those allocations and deletions is anathema
to them
The .NET memory management system approaches the allocation
of memory resources differently. A block of memory allocated in the garbage collected
or managed heap maintains a record of all the objects that refer to it. Only
when those references have been released is the object destroyed. This relieves
the burden of memory management from the programmer. You no longer have to
remember to delete memory; you just stop using it. A class no longer has to keep track of
reference counts. It knows when to delete itself. To reduce heap fragmentation,
the GC also moves objects to consolidate the used and free spaces in the
managed store.
Finally its automated
memory management – managed data to store when it is required and deletes the
data or objects when it is not necessary. Since process is automatic, programmer
need not to write separate code to manage the memory
. It prevents memory leaks and improves performance of
heavily stressed serer systems. The managed heap also ensures that unsafe
accesses, like buffer overflows and crashes, cannot modify the dta associated
with other programs running on the same system. This makes the whole operating
system more reliable and secure. Garbage collected systems have an unfair
reputation for being slow and inefficient, but Microsoft has gone to considerable
lengths to ensure that garbage collection in .NET really works. It’s very fast
and does not impose a significant load on the CPU.
The .Net Framework Type System
There are
two types of data types in .NET framework
·
Value
types
·
Reference
types
Value Types: These are including ints, chars, double, uint etc
Reference types: These are arrays, interfaces, classes and a native
string type.
The .NET Framework System Objects
The centralized working part of the
.NET Framework contains within a set of DLL’s that holds the system object
model. The system namespace holds class hierarchies for collections, security,
file I/O, graphics, Win32 API access, XML serialization, and many other
important functions. All of the .NET system is available from C#, VB, or any of
the supported languages
No comments:
Post a Comment