Chinese translated version of Documentation/dev-tools/sparse.rst
If you have any comment or update to the content, please contact the
original document maintainer directly. However, if you have a problem
communicating in English you can also ask the Chinese maintainer for
help. Contact the Chinese maintainer if this translation is outdated
or if there is a problem with the translation.
Chinese maintainer: Li Yang leo@zh-kernel.org
Documentation/dev-tools/sparse.rst çä¸æç¿»è¯
å¦ææ³è¯è®ºææ´æ°æ¬æçå
容ï¼è¯·ç´æ¥èç³»åææ¡£çç»´æ¤è
ãå¦æä½ ä½¿ç¨è±æ
交æµæå°é¾çè¯ï¼ä¹å¯ä»¥åä¸æçç»´æ¤è
æ±å©ãå¦ææ¬ç¿»è¯æ´æ°ä¸åæ¶æè
ç¿»
è¯åå¨é®é¢ï¼è¯·èç³»ä¸æçç»´æ¤è
ã
ä¸æçç»´æ¤è
ï¼ æé³ Li Yang leo@zh-kernel.org
ä¸æçç¿»è¯è
ï¼ æé³ Li Yang leo@zh-kernel.org
以ä¸ä¸ºæ£æ
Copyright 2004 Linus Torvalds
Copyright 2004 Pavel Machek pavel@ucw.cz
Copyright 2006 Bob Copeland me@bobcopeland.com
ä½¿ç¨ sparse å·¥å ·åç±»åæ£æ¥
1 |
|
ä½ å¯ä»¥ä» Sparse ç主页è·åææ°çåå¸çæ¬ï¼
http://www.kernel.org/pub/linux/kernel/people/josh/sparse/
æè ï¼ä½ ä¹å¯ä»¥ä½¿ç¨ git å éææ°ç sparse å¼åçæ¬ï¼
git://git.kernel.org/pub/scm/linux/kernel/git/josh/sparse.git
DaveJ ææ¯å°æ¶èªå¨çæç git æºç æ tar å æ¾å¨ä»¥ä¸å°åï¼
http://www.codemonkey.org.uk/projects/git-snapshots/sparse/
ä¸æ¦ä½ ä¸è½½äºæºç ï¼åªè¦ä»¥æ®éç¨æ·èº«ä»½è¿è¡ï¼
make
make install
å®å°ä¼è¢«èªå¨å®è£ å°ä½ ç ~/bin ç®å½ä¸ã
ä½¿ç¨ sparse å·¥å ·
ç¨"make C=1"å½ä»¤æ¥ç¼è¯å
æ ¸ï¼ä¼å¯¹ææéæ°ç¼è¯ç C æä»¶ä½¿ç¨ sparse å·¥å
·ã
æè
使ç¨"make C=2"å½ä»¤ï¼æ 论æ件æ¯å¦è¢«éæ°ç¼è¯é½ä¼å¯¹å
¶ä½¿ç¨ sparse å·¥å
·ã
å¦æä½ å·²ç»ç¼è¯äºå
æ ¸ï¼ç¨åä¸ç§æ¹å¼å¯ä»¥å¾å¿«å°æ£æ¥æ´ä¸ªæºç æ ã
make çå¯éåé CHECKFLAGS å¯ä»¥ç¨æ¥å sparse å·¥å
·ä¼ éåæ°ãç¼è¯ç³»ç»ä¼èª
å¨å sparse å·¥å
·ä¼ é -Wbitwise åæ°ã