Possible Duplicate:
Retrieve JIT output
Is this possible to do, and if so how (I would need to be after its JITed i think, but I have no idea how to go about doing this)?
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.
You can view the jitted assembly with the Visual Studio Debugger (Debug -> Windows -> Disassembly).
If you start the program with the debugger already attached (F5 in Visual Studio) then you’ll see the non-optimised version of the assembly that’s generated when the jitter detects such a situation.
If you need the optimised, non-debug version of the jitted assembly then you’ll need to compile your program in Release mode and start it without the debugger attached (Ctrl+F5 in Visual Studio). Then attach the debugger to the running process once you know that the required section of code has already been jitted. Then you can break and view the jitted assembly.