C# Programming - .NET Framework - Discussion

Discussion :: .NET Framework - General Questions (Q.No.4)

4. 

Which of the following utilities can be used to compile managed assemblies into processor-specific native code?

[A]. gacutil
[B]. ngen
[C]. sn
[D]. dumpbin
[E]. ildasm

Answer: Option B

Explanation:

No answer description available for this question.

Praveen Saini said: (Jun 17, 2011)  
Please tell me about the description of this answer.

Priyanka said: (Sep 30, 2011)  
The Native Image Generator (Ngen.exe) is a tool that improves the performance of managed applications. Ngen.exe creates native images, which are files containing compiled processor-specific machine code, and installs them into the native image cache on the local computer. The runtime can use native images from the cache instead using the just-in-time (JIT) compiler to compile the original assembly.

Prasanjit said: (Dec 1, 2011)  
Priyanka: Thanx for the explanation you gave above! :)
but can you make it in simple words..what its all about?

Venkatesh said: (Dec 22, 2011)  
Any body please explain me where we are using this? while developing the applications.

Veeranjaneyulu.P said: (Feb 10, 2012)  
Thanks for the explation given to me.

But I can tell to the Native Image Geneator (Ngen.exe) is tool that improves the performance of managed applictions

Shiva said: (Aug 21, 2012)  
ngen means native image genrator which is used for increasung performance. Its invoke all assemblies to generate native code. Put it in sepharate place to access runtime.

Guest said: (Aug 23, 2012)  
Ngen.exe creates native images, which are files containing compiled processor-specific machine code, and installs them into the native image cache on the local computer

Pinal said: (Oct 23, 2012)  
ngen.exe is a process which belongs to the Microsoft .NET and provides a native image cache. "This program is a non-essential process, but should not be terminated unless suspected to be causing problems. "

Kundan Pathak said: (May 22, 2014)  
I don't think so, this is not a satisfactory answer my be but justification is not suitable.

Kundan Pathak said: (May 22, 2014)  
Accord to me NGEN is a compiler/interpreter that receive the IL and Generate the Native code or machine code correspondingly or accordingly.

Vishwanath Heddoori said: (Jul 14, 2015)  
The Native Image Generator, or simply NGen is the ahead-of-time compilation service of the .NET Framework. It allows a CLI assembly to be pre-compiled instead of letting the Common Language Run time do a just-in-time compilation at run time.

Satya said: (Feb 2, 2016)  
Thanks for the above explanation.

Sattu said: (Nov 18, 2016)  
Thanks for all the explanation.

Raghuram said: (Mar 5, 2017)  
Tank u frds it's very easy to understand keep updates

Ravi said: (Apr 11, 2017)  
Once an NGen is run against an assembly, the resulting native image is placed into the Native Image Cache and when we run the application it uses the Native cache instead of the recompilation of code.

Mubashira said: (May 8, 2018)  
Please explain all the given option in detail.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.