I was wondering, when compilers output to CIL, is the CIL optimized? Assuming the language doesn’t insert bonus data information in debug mode i was wondering if the JIT does all optimizations completely by itself and i assume it could.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Both. If you build in release mode, whichever compiler you’re using will apply some optimization to the code before it goes into CIL. The JITter has optimizations too.
An example of an optimization typically done by the compiler is constant folding.
An example of an optimization typically done at JIT level is loop unrolling.