Q.1 How Ngen.exe convert IL code into native code , Please give one example? ( Dont write any steps of doing from wikipedia)
Q.2 what is the difference between JIT & NGen.exe tool because both convert Il code into native code?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rushal AroraPosted Dec 2, 2013, 1:15 AM
ok i'll do 1 thing
i am writing down something , please rectify me.
JIT Compiler
suppose i make a class as console based application in VS2010 and compile it and run it then here JIT plays its role .
Ngen.exe
similarly suppose i make a another class as console based application in VS2010 , Now should it compile it ?*
After then i have to open VS cmd
>ngen class.exe
>What to do from here*
Jaganathan BantheswaranPosted Dec 2, 2013, 12:28 AM
Mainly the NGen.exe will be used at the time of .net application installation. 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 of using the just-in-time (JIT) compiler to compile the original assembly.
Its nicely explained here.