Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/EgorBo/Disasmo
VS2022 Add-in. Click on any method or class to see what .NET Core's JIT generates for them (ASM).
https://github.com/EgorBo/Disasmo
asm csharp disassembler netcore visual-studio-extension
Last synced: about 1 month ago
JSON representation
VS2022 Add-in. Click on any method or class to see what .NET Core's JIT generates for them (ASM).
- Host: GitHub
- URL: https://github.com/EgorBo/Disasmo
- Owner: EgorBo
- License: mit
- Created: 2019-01-28T22:12:08.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T00:07:29.000Z (3 months ago)
- Last Synced: 2024-11-05T05:10:13.963Z (about 2 months ago)
- Topics: asm, csharp, disassembler, netcore, visual-studio-extension
- Language: C#
- Homepage:
- Size: 7.23 MB
- Stars: 657
- Watchers: 23
- Forks: 41
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Disasmo
[VS2022 Add-in.](https://marketplace.visualstudio.com/items?itemName=EgorBogatov.Disasmo)
Click on any method or class to see JIT's codegen and more.![demo](images/screenshot.gif)
Starting with .NET 7.0 RC1 this add-in no longer requires a local build of dotnet/runtime repo.
However, it offers more features with a local one, to obtain a local one please follow these steps:
```ps1
git clone [email protected]:dotnet/runtime.git
cd runtime
build.cmd Clr+Clr.Aot+Libs -c Release -rc Checked# optional (for crossgen2 + arm64 for hw intrinsics):
build.cmd Clr.CoreLib -c Release -a arm64
```
See [windows-requirements.md](https://github.com/dotnet/runtime/blob/main/docs/workflow/requirements/windows-requirements.md).## Release notes
See [RELEASE_NOTES.md](RELEASE_NOTES.md)## Installation
Click on `Extensions\Manage Extensions` menu, select `Online` tab and type `Disasmo` in the "Search"
text box. Once the add-in is installed you have to close all active instances of VS2022
to let the installer finish its job.## Features
* Hot-key to quickly see codegen (Alt+Shift+D by default, can be changed in VS's settings)
* Is able to show codegen for ARM64
* Flowgraphs and JitDumps for JIT contributors
* Diffs
* "System.Runtime.Intrinsics quick search" tab
* Inliner's decisions
* 'Run' mode. Is useful for e.g. PGO inspection## Known Issues
* Only .NET 6.0 and later projects are supported with custom runtime
* .NET 7.0 RC1 (or newer) is needed for non-custom runtime mode
* I only tested it for simple Console Apps, but it should work for libs as well
* Generic methods are only supported in 'Run' mode
* **Resharper** hides Roslyn actions by default (Uncheck "Do not show Visual Studio Light Bulb").
* The lightbulb can be slow on first launch
* When disassembling a method from a class, the associated C# Visual Studio project or one of its project files must the active/selected in the solution explorer, otherwise it will generate a blank disassembly window.
* When disassembling a method that uses a code coming from a NuGet package, Disasmo will not be able to find the assembly. The workaround is to copy the assembly to the disasmo folder created in the output bin folder of the project.## 3rd party dependencies
* [MvvmLight](https://github.com/lbugnion/mvvmlight) (MIT)
* [AvalonEdit](https://github.com/icsharpcode/AvalonEdit) (MIT)