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