摘要: 转载自:http://hc.csdn.net/contents/content_details?type=1&id=3411.展开循环如果提前知道了循环的次数,可以进行循环展开,这样省去了循环条件的比较次数。但是同时也不能使得kernel代码太大。 1 #include 2 using namesp... 阅读全文
posted @ 2014-05-19 15:43 Magnum Programm Life 阅读(1243) 评论(0) 推荐(0) 编辑
摘要: 转自:http://hi.baidu.com/hust_chen/blog/item/8ff7811135b56b06213f2ef7.html2008-12-06 21:12用 GDB 调试程序GDB 概述————GDB 是 GNU 开源组织发布的一个强大的 UNIX 下的程序调试工具。或许,各位... 阅读全文
posted @ 2014-05-19 11:45 Magnum Programm Life 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 转自:http://hi.baidu.com/hust_chen/blog/item/4bb7a5009b543c011d9583f0.html2008-12-06 21:12一、设置断点( BreakPoint ) 我们用 break 命令来设置断点。正面有几点设置断点的方法: break 在进... 阅读全文
posted @ 2014-05-19 11:43 Magnum Programm Life 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 转自:http://hi.baidu.com/hust_chen/blog/item/64f3ad458b690b85b2b7dcf0.html2008-12-06 21:13四、源代码的内存你可以使用 info line 命令来查看源代码在内存中的地址。 info line 后面可以跟 “ 行号 ... 阅读全文
posted @ 2014-05-19 11:42 Magnum Programm Life 阅读(231) 评论(0) 推荐(0) 编辑