Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- map <F4> :call CtoAsm()<CR>
- function CtoAsm(...)
- let opt = ''
- if a:0 > 0
- let opt = 'O'.a:1
- endif
- exec "w"
- exec '!gcc % -S' . ' -' . opt . ' ' . '-o %:r'.opt.'.s'
- exec 'e! %:r'.opt.'.s'
- endfunc
Advertisement
Add Comment
Please, Sign In to add comment