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

New Message on BDOTNET

-----------------------------------------------------------
From: ChiefCoder
Message 3 in Discussion

The smart JIT compiler takes care of code verification and validation. At the second 
of subsequent runs if it finds an unverifiable code, it adds relevant code in the MSIL 
and application survives a potential crash and throws an exception if it dosn't have a 
SkipVerification permission. If it has the same, the exception won't be thrown. 
Invalid code detection will ofcourse lead to an exception.   Since, MSIL is a stack 
based phenomenon. If you want to make sure that MSIL code is not recompiled. Two 
conditions must hold true. 1. There should be certain instructions that require 
particular datatypes on the evaluation stack e.g. .maxstack directive with every 
method signifies how many times this item is gonna be lying on the evaluation stack. 
2. Second and the most important requirement is that at any moment , the state of the 
evaluation stack should be certain in a single pass of JIT.    Since JIT makes 
multiple subsequent passes to MSIL, in every call, the state of the stack should be 
established and identifiable, even by statements such as br.s that don't care about 
state at all !   Hence, the recompilation will depend on the code's validity and 
verfiability.    Sumit Amar

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

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