Native Image - An analysis: * A Native Image is a compatible view of an application and it can be created by using Ngen tool(Native Image Generator tool). * Native Image gets stored in the NativeImageCache(PerMachineGlobalStorage) a secured folder which is associated with the Global Assembly Cache.(Its a reserved portion) * The Native image can be created by using the command path:\> ngen (applicaiton.dll) or (application.exe) * While executing an application the run time will consider the native image (if a native image is generated for an application) instead of converting the MSIL code to native code which imparts the speed of exection for an application. * The Main reason for creating Native Images is to reduce the work performing by the JIT Compiler but on the other side it loses the inherent properties associated with JIT Compilation. * If you want to see the Native Image (Whether its installed or not) you can execute the following command in the Visual Studio .net Command Prompt ------------- ngen /show <application.dll>(or)<application.exe). It will show the properties associated with the Native Image and its reference applciation(exe or dll) Regards J.Venkatesan Prabu HCL Technologies. Chennai. |