摘要: likely 和 unlikely可以用来优化 指令的预读技术。likely表示极可能发生, unlikely表示不怎么发生。下面节自《Linux Kernel Development》 2nd , 第二章(书可以在http://elinux.cn下载)Branch AnnotationThe gcc C compiler has a built-in directive that optimizes conditional branches as either very likely taken or very unlikely taken. The compiler uses the di 阅读全文
posted @ 2011-03-15 21:08 nosaferyao 阅读(560) 评论(0) 推荐(0) 编辑