Mixed source/assembly syntax (objdump) : Syntax for Mixed C source and assembly dump.
script karma |
Rating 43/21,
Downloaded by 1356 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Vihar Rai |
|
script type |
syntax |
|
description |
This is a syntax file for mixed C source and assembly dump, disassembled by gnu "objdump" utility. It does not recognize processor instructions so, it can be used on any platform. Here are the commands to generate the mixed disassembly. Make sure the source file is in the same directory as the object file.
gcc -g -c xxx.c /*output is xxx.o*/
objdump -S xxx.o > xxx.dis /* creates disassembly mixed with source */
|
|
install details |
First copy the syntax file to your $VIM/syntax folder.
Then,
In version 7.x
------------------
In your $VIM/ftdetect folder
create a file named cmix.vim and add
autocmd BufRead,BufNewFile *.dis set filetype=cmix
In older versions:
-----------------------
1.Create a file "myfiletypes.vim" in your $VIM directory with the following
" myfiletypefile
augroup filetype
au! BufRead,BufNewFile *.dis set filetype=mixed
augroup END
2.Create another file in the same directory named "mysyntax.vim" with
au! Syntax mixed so $vim\syntax\cmix.vim
" path shown above should be the directory you saved the syntax file in.
" change the direction of the slash for *nix platforms
|
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.117.107.90
|