pretty code

2008年9月29日 星期一

Global 使用說明

1.下載 win32版本
http://www.geocities.com/jadoxa/global/index.html

2.切到 source code root 目錄下

3.set path=e:\Global\bin

4.執行 gtags ,會在 2 的目錄下產生相關檔案。

5.執行 htags 搭配相關參數,便能產生你要的網頁。

htags -s
會產生變數的參照,方便尋找變數的宣告位置。

htags -a
會產生函數的參照,方便尋找函數的呼叫位置。

小型專案可以考慮 htags -sna
大型專案建議使用 htags -na


`-v', `--verbose'
Verbose mode.

`-s', `--symbol'
Make anchors not only for object definitions and references but also other symbols.

`-a', `--alphabet'
Make an alphabetical function index which is suitable for a large project.

`-n', `--line-number'[=columns]
Print line numbers. By default, doesn't print line numbers. The default value of columns is 4.

`-o', `--other'
Pick up not only source files but also other files except for binary files.

`-h', `--func-header'[=position]
Insert function header for each function. By default, htags doesn't generates it. You can specify the position using position argument, which allows one of before, right and after. The default position is after.

`-T', `--table-flist'[=fields]
Generate file list using tag. The fields is used for field number in a line. The default is 5.

`-F', `--frame'
Use frame for each part of the contents.

`-f', `--form'
Support search form using CGI program. You need to set up a web server, and you cannot move the hypertext from the source directory.

2 則留言:

freewave 提到...

請問一下
Global是否只能分析C的源碼呢?
我測試了一個fortran77的源碼
輸出空白的網頁?

tylpk 提到...

你好

抱歉沒有注意到你的問題
因為我也沒想到會有人來 ... XD

如果以 Global 的說明來看
應該是不支援的
底下是有支援的類型

support C, C++, Yacc, Java, PHP4 and assembly.