????3. links???

?????????eclemma???????????μ?eclemmaEclipse???????http??//sourceforge.net/projects/eclemma/files/??source=navbar

??????eclipse???????????????links????У??????????(????eclemma-2.2.0)????????links??????£?????links????????eclemma.link???????????????д??path=/usr/lib/eclipse/links/eclemma-2.2.0 ?????path=xxx??eclemma?????е?·???? ??????????Linux??????windows???????D??xxxeclipselinkseclemma-2.2.0??

??????????????eclipse???????eclemma??????????????????Eclemma?????

????????? ??????????windows???????????????????????Ubuntu?o?????У????????????????????????????Ubuntu???????????????

????????eclemma-2.2.0??????У??????н??????eclipse????в???eclemma???????????????? eclipse????

????????eclipse?????????н?????????.eclipseextension?????????(???"."??????)??????????????????????????????????£?

cd /usr/lib/eclipse/links/eclemma-2.2.0/
sudo mkdir eclipse
sudo mv * eclipse/
cd eclipse/
vi .eclipseextension
chmod +x .eclipseextension

??????????????????????sudo?????????????????? ??????????? /usr/lib?????????root???????????????????????????sudo??

????2.2.3 EclEmma?????

????????Eclemma???????????????????????????????£?

???????Eclemma???и???????http??//www.ibm.com/developerworks/cn/java/j-lo-eclemma/

????2.3C++???????????gcov

????gcov??GNU/GCC??????????????C/C++???????????????????????????????????????棬????CLI?????н???.????????????棬???Ggcov??

????2.3.1gcov????

????gcov??gcc??????????????????gcc??????????д???????

????2.3.2gcov???????????????

????grov??????????????????????????е????????????????????????串????????????????????????????????????????е????????ù????????????????????????е???????????????????????

????Gcc???????????gcov??gcov?????gcc?????????????(?????????в?????ο????????????????)????ò??裺

??????????????”-ftest-coverage-fprofile-arcs”??a.out(??????-o???????????????)??.gcda?????

???????./a.out??????????????????????·???????????????????????????????????? ????е???????浽.gcno??.gcda?????-->gcov-b xxx.c-->xxx.c.gcov(?????????????????е???????????е???????“####”???)

??????????gcov?????????±??????????????????????????????????????汾????С?

????gcov???????????????????gcov?????????(man gcov)

/*Program: testgcov.c -- interpert the workflow of gcov */
 #include<stdio.h>
int main(){
 printf("Hello??World ");
}