全文预览

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

上传者:科技星球 |  格式:pdf  |  页数:95 |  大小:11917KB

文档介绍
trlen(string);\rstring2=(char*)malloc(size+1);\rfor(i=0;i<size;i++)\rstring2[size-1-i]=string;\rstring2[size]=''E\rfor(i=0;i<5000000;i++)\rsum+=i;\rprintf("Thestringprintedbackwardis%s@string2);\r)\r$gcc-pg-ohellohello,c$./hello$gprofhellomoreKLMNOPFlat\rprofile:Eachsamplecountsas0.01seconds.%cumulativeselfselftotaltime\rsecondssecondscallsus/callus/callname69.230.090.09190000.00103333.33\rmyprint230.770.130.04313333.3313333.33count_sum0.000.130.0020.00\r13333.33my_print%YZ[\n\]^N]0@_timeYZN`ab\rcumulativecde\nYZ[\nfgNseconds(hi[\nj^kl\nfgN\r)selfYZ[\nfgNseconds(j^kl\nfgNmdn o)\rcallsj^p\nselfq[YZ[\nfgNreus/calltotalq[YZ[\np\rslj^kl\nus/callfgNrename\ntus\nvwxPYZ\rmyprinty\nz{|fg}~€lj^?count_sum()\n\cde\n‚\r0.13.ƒ„…gprofLMN†‡\nvˆ‰Š‹ŒŽ\nvN‘’“”OP•–—\r˜™š›œ.

收藏

分享

举报
下载此文档