I want to see the x86 assembly being generated by .Net's just-in-time compiler. I know how to do this for "normal" code, compiled ahead of time, but don't know how to do it for code generated dynamically at runtime (which I'm doing with expression trees).
I'm not even really sure what to try. For example, the delegate created by compiling the expression tree points at an address, but I don't know what to use to view what's at that address.
Use LambdaExpression.CompileToMethod(MethodBuilder)
.
You can then save the AssemblyBuilder to a file which you can examine in your favorite ,NET disassembler.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With