wk,现在优化技术这么强大,多年来辛苦学来的很多c++技巧全都白学了 {:3_192:} 作者: shang2010 时间: 2013-01-30 14:24
怪不到现在的代码行业,都自称码农码畜作者: folklore 时间: 2013-01-30 14:29
don't debug the optimized code.
-- the code is allready optimized[/code], and some varaint may
not longer
available.
in the other wrods: don't component the compiling options -g & -o2作者: w_anthony 时间: 2013-01-30 14:36
优化后的代码,单步跟踪得到的信息怎么会准确呢?直接printf或者写文件日志输出看看。
另外-O2后,最好加个-fno-strict-aliasing,免得出了问题要找半天才知道是这玩意儿整的作者: xxfihm_cu 时间: 2013-04-18 16:52
有道理