#include <stdio.h>
#include <stdlib.h>
//跑飞测试


int global1 = 30; // .data 数据段
int global2; // .bss 数据段


char s[1000];


int main(int argc, char const *argv[]) // .text 正文段/代码段
{
int a = 100; // stack,栈
int *p = malloc(20); // heap,堆


static int b = 20; // .data 数据段
static int c; // .bss 数据段


printf("hello"); // 标准IO的缓冲区
sleep(1);
printf("\n");


return 0;

}

Linux进程内存分析


相关文章:

  • 2021-05-19
  • 2022-02-18
  • 2021-09-26
  • 2021-04-30
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
猜你喜欢
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2021-05-09
  • 2021-09-17
  • 2022-03-02
相关资源
相似解决方案