- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 计算机相关试题
<br /> <br /> <br />gcc pushes the arguments in a particular order. What is the order and why?<br /> <br />Answer: gcc pushes arguments in reverse order, last argument first. Because the stack grows down on the x86 (and PDP-11), this means that the first a
2011-02-27 21:26:00 378
转载 C 程序性能优化
<br /> 一段c程序,功能开发完成,开始性能优化。<br /> 当然是先用 -pg 编译,再gprof看“热点”在哪里,很快找到,是计算hash值的函数,于是换了个更快的hash函数——fnv (http://isthe.com /chongo/tech/comp/fnv/),速度提高了一些。接着把该hash函数内联(inline),程序又快了一些。内联函数不是解决性能问题的灵丹妙药,因为inline之后gprof就看不到该函数的调用情况,也就不好找真正的性能瓶颈了。<br /><
2011-02-27 19:34:00 696
转载 6 Stages of Linux Boot Process (Startup Sequence)
<br />http://www.thegeekstuff.com/2011/02/linux-boot-process/<br /> <br />Press the power button on your system, and after few moments you see the Linux login prompt.<br />Have you ever wondered what happens behind the scenes from the time you press the po
2011-02-13 15:00:00 887
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人