Chinaunix首页 | 论坛 | 博客
  • 博客访问: 248528
  • 博文数量: 55
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 419
  • 用 户 组: 普通用户
  • 注册时间: 2014-03-06 20:22
文章分类

全部博文(55)

文章存档

2014年(55)

我的朋友

发布时间:2014-03-26 17:19:10

转:http://blog.csdn.net/skywalkzf/article/details/5068966相信大家在看linux的source code的时候,都会注意到asmlinkage这个宏,它是用来做什么的呢?The asmlinkage tag is one other thing that we should observe about this simple function. This is a #define for some gcc magic that tells the compiler th.........【阅读全文】

阅读(1287) | 评论(0) | 转发(0)

发布时间:2014-03-26 12:31:32

1、将一整数逆序后放入一数组中(要求递归实现)void convert(int *result, int n){     if(n>=10)         convert(result+1, n/10);     *result = n%10;   }i.........【阅读全文】

阅读(1572) | 评论(0) | 转发(0)

发布时间:2014-03-21 12:44:15

Code One#include <stdio.h>int main(int argc,char *argv[]){    char *s="123456";    while(*s)    {        printf("%c ",*s);        *s += 1;  .........【阅读全文】

阅读(1359) | 评论(0) | 转发(0)

发布时间:2014-03-19 22:00:22

1、查看源码:list [函数名][行数]2、暂停程序(1)设置断点:a、break + [源代码行号][源代码函数名][内存地址]b、break ... if condition   ...可以是上述任一参数,condition是条件。例如在循环体中可以设置break ... if i = 100 来设置循环次数(2)观察断点:a、watch + [变.........【阅读全文】

阅读(1415) | 评论(0) | 转发(0)

发布时间:2014-03-18 16:45:43

linux内核下载地址: http://www.kernel.org/pub/linux/kernel/ 或者: http://www.kernel.org/ 我们还是从顶层makefile来进行分析:首先我们来简述一下makefile的功能,以便对makefile有更深入的理解,makefile有3点比较重要的作用:一是决定编译哪些文件,二是怎样编译这些文件,.........【阅读全文】

阅读(2061) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册