2012年8月31日 星期五

ARMvisor has been opened its source code

We've opened our source code of ARMvisor on GitHub under GNU GPLv2 license. The document will also release soon.

2012年8月18日 星期六

ARMvisor opensource in late August, 2012

Coming soon...

We are going to open source codes of ARMvisor in late August, 2012 on Github.

We are still refine our code to let it more easy to be read. Besides, we are writing some user guide.

Please following this blog. When the source code has opened, we will provide the link in this blog.

2012年5月12日 星期六

如何讓vim能自動parse出ARM的組合語言

在開發Linux kernel for ARM的時候,我們時常會使用vim來編寫程式碼,在一般以C語言撰寫的部份,vim皆能正確地對程式碼標色。但是在組合語言( Assembly language )檔案的部份,許多時候並不能對指令、參數等正確標色,實為缺憾。

但是我們發現在vim.sourceforge網站上,有人提供了armasm.vim的檔案,能夠讓vim能夠正確的對arm的組合語言標色。不過可惜的是只有Support到v5以前的指令,在v6之後的指令就只能自行修改armasm.vim檔案來支援,不過對於大多數的指令來說已經很夠用了。

其網頁於此:http://vim.sourceforge.net/scripts/script.php?script_id=888


其使用方法如下:
(註:我的使用環境是Ubuntu 11.10,VIM 7.3 for Ubuntu)

1. armasm.vim要放置的資料夾建置

   在家目錄下,建置.vim資料夾,再於.vim資料夾下建置syntax資料夾
   前述資料夾若已經存在則不需再另外建立

2. 取得並放置armasm.vim檔案

     (1) 去http://vim.sourceforge.net/scripts/download_script.php?src_id=4029 下載armasm.vim檔案

     (2) 將方才下載的armasm.vim檔案放置到~/.vim/syntax下

3. 修改家目錄下的.vimrc檔案,使vim能預設啟用armasm.vim檔案

    增加下列字串:
let asmsyntax='armasm' 
let filetype_inc='armasm'


調整好後,用vim開啟arm組合語言檔案就能正確標色




Creative Commons Licence
This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Taiwan License.

本文同步發佈於 http://invmm.blogspot.com