-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Absent_Minded_Aquarian
Message 5 in Discussion

  Hi!   Just before the JITter is called into play, the CLR attempts to check for the 
presence of the Native Code for an assembly generated using NGEN.EXE utility (which 
internally uses the MSCORPE.DLL, the native code generator).   When native code is 
generated:         its required that all the dependencies are present (for instance, 
type libraries, DLLs, etc) so that load addresses and type can be generated for the 
native code. Minus the presence of all dependencies, native code generation will fail. 
   The native code generation uses MVID (Module Identifier) to generate the native 
code for an assembly's modules so that if there is a recompilation, the MVID can be 
checked against to see if the cached native image should be used or not. 
That said, now when an assembly is loaded, prior to the JITter, the CLR checks the GAC 
for the presence of the cached native code. If it find for the assembly in question, 
its made sure that the native code is latest, by comparing the MVIDs used to generate 
the native code and the current MVID's for the assembly modules. If they match, the 
cached image is the latest and is used for execution. 
But if the MVIDs differ, the CLR, subjects the assembly to the JITter which then 
proceeds to do compilation on demand, as it normally does. 
Read Essential .NET Vol #1: The Common Language Runtime by Don Box for details. Gaurav 
---------- Microsoft MVP - .NET WinToolZone - Spelunking Microsoft Technologies 
http://www.wintoolzone.com/ OpSupport - Spelunking Rotor http://opsupport.sscli.net/

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to