阅读背景:

linux中“size”命令的结果以及text和edata&end的值是不同的

来源:互联网 

The code is

代码是

/* test_etext.c */

#include <unistd.h>
#include <stdio.h>

extern char etext, edata, end;

int
main(int argc, char *argv[])
{
    pid_t pid, ppid;

    pid = getpid();
    ppid = getppid();

    printf("%ld\t%ld\t%ld\n", &etext, &edata-&etext, &end-&edata);

    return 0;
}
/* test_etext.c */

#includ



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: