AssemblyForNeovim - Godbolt-style inline assembly viewer for Neovim
Show HN: Godbolt-in-a-floating-window for Neovim (C, C++, Rust)
AssemblyForNeovim is a lightweight Lua script that brings Godbolt-style assembly inspection directly into Neovim. It displays the generated assembly for C, C++, and Rust code in a floating window, supporting x64 and aarch64 architectures. Press <leader>a on a function or selected lines to instantly see the compiled output, adjust optimization levels with +/-, rerun with R, and close with q. It works with cc, c++, rustc, or cargo on your PATH and respects compile_commands.json when available. Perfect for developers who want to understand compiler output without leaving their editor.
Shows the assembly for C, C++ and Rust code in a floating window.
- waschl
+1 only because of the seemingly non-AI README. Such a joy to get the core info in one glimpse
- evmar
https://github.com/pacak/cargo-show-asm is a nice helper for the Rust->asm part of this that has seen a decent amount of work for handling all the edge cases. (I've contributed a bit to it to handle some Windows issues.)
- bajard
Maybe I should say Compiler Explorer instead of Godbolt.
This should be mandatory for any programming environment, along with a CPU emulator showing how data moves through the ALU, and all the ports, to which registers it goes to, and how everything works clock by clock.
I hope AI makes this possible, at least for VS Code and C++.