https://github.com/mattkretz/vim-compilerexplorer
Compiler Explorer on a tab in vim
https://github.com/mattkretz/vim-compilerexplorer
compiler-explorer vim-plugin
Last synced: about 1 month ago
JSON representation
Compiler Explorer on a tab in vim
- Host: GitHub
- URL: https://github.com/mattkretz/vim-compilerexplorer
- Owner: mattkretz
- Created: 2020-02-26T10:58:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T10:48:40.000Z (8 months ago)
- Last Synced: 2025-02-16T00:44:52.322Z (3 months ago)
- Topics: compiler-explorer, vim-plugin
- Language: Vim Script
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# compilerexplorer.vim
This is a proof-of-concept vim plugin for local Compiler Explorer
functionality, similar to https://compiler-explorer.com/. Press `` to open
a new tab which opens the files `ce.cpp` and `ce.asm` in the CWD. On top, the
invocations of the C++ compiler and llvm-mca can be configured.After editing `ce.cpp`, press `` again to update `ce.asm`. If any
diagnostic output was produced, a QuickFix window opens at the bottom and a new
window on the left jumps to the first error. Now, if you want to analyze the
assembly using llvm-mca, make visual selection in the `ce.asm` buffer and press
`` again. This will open another vertical split showing the output of
llvm-mca for the selected instruction sequence.At this point, this plugin is a quick solution for supporting my work: Inspect
the codegen of certain C++ library calls, while developing the library.
If you find this plugin useful but need more features, please contribute your
ideas or even better PRs.## Installation
mkdir -p ~/.vim/pack/mattkretz/start
cd ~/.vim/pack/mattkretz/start
git clone https://github.com/mattkretz/vim-compilerexplorer## License
Copyright © Matthias Kretz. Distributed under the same terms as Vim itself.
See `:help license`.