Skip to content

evilwaveforms/disenchant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

disenchant

Inspired by emacs plugin disaster, disenchant lets you see asm of the current c/c++ file.

Assembly code is generated by first compiling the current file into an object file. The compilation method is chosen based on the following order of precedence:

compile_commands.json > Makefile > direct gcc/g++ invocation

Object file is then passed to objdump after which the asm is shown on split window.

installation & configuration

lazy.nvim

Values inside opts are defaults. If you don't want to change them, opts can be {}.

    {
        "evilwaveforms/disenchant",
        opts = {
            keymap = {
                disassemble = "<leader>om",
            },
            compile_command_c = "gcc -g3 -c %s -o %s",
            compile_command_cpp = "g++ -g3 -c %s -o %s",
            objdump_command = "objdump -Sl --demangle -Mintel --source-comment --no-show-raw-insn -d %s",
        },
    },

About

disassemble C/C++ in neovim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages