gpt4 book ai didi

.net - 如何查看 CLR 生成的 native 代码?

转载 作者:行者123 更新时间:2023-12-01 02:54:52 24 4
gpt4 key购买 nike

有什么办法可以看到CLR生成的 native 代码吗?

在java中有一个选项“ -XX:+PrintOptoAssembly ”来查看JIT编译的 native 代码。那么 CLR 有没有类似的东西呢?

最佳答案

是的,你可以使用 WinDbg+ SOS反汇编 JIT 生成的代码。更具体地说,您可能会发现 !u命令对您的需求特别有用:

Displays an annotated disassembly of a managed method specified either by a MethodDesc structure pointer for the method or by a code address within the method body. The U command displays the entire method from start to finish, with annotations that convert metadata tokens to names.

关于.net - 如何查看 CLR 生成的 native 代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3386972/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com