An open API service indexing awesome lists of open source software.

https://github.com/akeit0/jitinspect

JitInspect disassembles JIT compiled managed methods to a x86/x64/Arm64 ASM.
https://github.com/akeit0/jitinspect

Last synced: 2 days ago
JSON representation

JitInspect disassembles JIT compiled managed methods to a x86/x64/Arm64 ASM.

Awesome Lists containing this project

README

        

# JitInspect
[![NuGet](https://img.shields.io/nuget/v/JitInspect.svg)](https://www.nuget.org/packages/JitInspect)
[![license](https://img.shields.io/badge/LICENSE-MIT-green.svg)](LICENSE)

JitInspect disassembles JIT compiled managed methods to a x86/x64/Arm64 ASM.
Inspired by [JitBuddy](https://github.com/xoofx/JitBuddy)

## NuGet
https://www.nuget.org/packages/JitInspect
```
dotnet add package JitInspect
```

## Usage
```C#
using JitInspect;

var action = TestMethod;
Console.WriteLine(action.Method.Disassemble());

static void TestMethod(int a, int b)
{
Console.WriteLine(a + b);
}
```
Output:
```asm
; Program.<$>g__TestMethod|0_0(Int32, Int32)
L0000: add ecx, edx
L0002: jmp qword ptr [0x7ffeffe84e88]; System.Console.WriteLine(Int32)

```
# Credits
- [JitBuddy](https://github.com/xoofx/JitBuddy)
- [ClrMD](https://github.com/Microsoft/clrmd)
- [BenchmarkDotNet](https://github.com/dotnet/BenchmarkDotNet)
- [iced](https://github.com/icedland/iced)
- [Capstone.NET](Gee.External.Capstone.Arm64)

# LICENSE
MIT