全文预览

Linux操作系统下C语言编程入门

上传者:读书之乐 |  格式:pdf  |  页数:95 |  大小:11756KB

文档介绍
m();\rsize=strlen(string);\rstring2=(char*)malloc(size+1);\rfor(i=0;i<size;i++)\rstring2[size-1-i]=string;\rstring2[size]=''q\rfor(i=0;i<5000000;i++)\rsum+si;\rprintf("Thestringprintedbackwardis%s”,string2);\r$gcc-pg-ohellohello,c$./hello$gprofhelloImore!"R5pyzFlat\rprofile:Eachsamplecountsas0.01seconds.%cumulativeselfselftotaltime\rsecondssecondscalIsus/callus/callname69.230.090.09190000.00103333.33\rmy_print230.770.130.04313333.3313333.33count_sum0.000.130.0020.00\r13333.33my_print%ƒMB„…pX…??†timeXp‡ˆ‰\rcumulativeŠ‹ŒBƒMBŽpXseconds(ƒMB‘’“MBŽp\rX)selfƒMBŽpXseconds(‘’“MBŽpX”‹•P–)\rcalls‘BselfƒƒMBŽp—ŒXus/calltotalƒƒMB\r“‘’“MBus/callŽp—ŒXnameMBD˜R\nB™šR›zJ\rmy_print()MBœžŽŸ XJ¡C“¢‘@count_sum()MBJ„RŠ‹ŒB0\r0.13.£¤;gprof!"p-.B™¥¦JY§`¨©ª«B™p¬­®¯yz°±²\r³#$+,´.

收藏

分享

举报
下载此文档