Conditional compilation of intermediate language code based on current
environment includes loading intermediate language code on a device.
Portions of the intermediate language code are conditionally just-in-time
compiled based on a current environment of the device. In accordance with
certain aspects, intermediate language code is loaded on a device and a
current environment of the device is identified. The intermediate
language code is modified based on the current environment, and portions
of the modified intermediate language code are just-in-time compiled as
needed when running the intermediate language code.