What is Native Image Generator (Ngen.exe)?
The Native Image Generator utility (Ngen.exe) allows you to run the JIT
compiler on your assembly's MSIL and generate native machine code which
is cached to disk. After the image is created .NET runtime will use the
image to run the code rather than from the hard disk. Running Ngen.exe
on an assembly potentially allows the assembly to load and execute
faster, because it restores code and data structures from the native
image cache rather than generating them dynamically.Native images load
faster than MSIL because JIT compilation and type-safety verification
is eliminated.
Full Interview Questions for .NET and SQL Server
http://www.geocities.com/dotnetinterviews/
Help the community to make job search easier mail your questions to
jobatyourdoorstep@.yahoo.co.in
Looking for a onsite job mail your resumes at
jobatyourdoorstep@.yahoo.co.in
Shiprasad Koirala
|||"Jobs" <jobatyourdoorstep@.yahoo.co.in> schrieb:
> The Native Image Generator utility (Ngen.exe) allows you to run the JIT
> compiler on your assembly's MSIL and generate native machine code which
> is cached to disk. After the image is created .NET runtime will use the
> image to run the code rather than from the hard disk.
There's a little contradiction in the two sentences above. The native image
is stored in a special area of the GAC on the disk (typically harddisk).
BTW: In general Microsoft's public newsgroups are a place for peer support
and not an advertising platform.
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Friday, February 24, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment