代码段(Text segment)
数据段(Initialized data segment)
BSS段(Bss segment/Uninitialized data segment)
栈(Stack)
堆(Heap) 散步去看雨 发表于 2019-5-22 22:18
根据内存地址从低到高分别划分为:
代码段(Text segment)
应该先堆后 栈 我windos上用vs怎么堆和栈都是从高到低存放? 谢谢 纠正:2.典型 C 语言程序的内存空间划分:图片中‘bbs'应该是’bss'吧{:10_279:} 怪不得如此违和,想到了贵校一大论坛 妙啊{:10_275:} 来冒个泡
打卡!!!!! 感谢 好好学习才能天天向上! {:10_249:}{:10_257:} C:\Users\admin\Desktop为啥我出来的地址大小跟小甲鱼的对不上 addr of func->0000000000401530
addr of str1->0000000000404000
addr of str2->000000000040400B
addr of global_init_var1->0000000000403010
addr of global_init_var2->0000000000403014
addr of static_init_var->0000000000403018
addr of static_uninit_var->0000000000407034
addr of global_uninit_var->0000000000407030
addr of malloc_var->0000000000171420
addr of local_var1->000000000062FE04
addr of local_var2->000000000062FE00
为啥我出来的地址大小跟小甲鱼的对不上
页:
[1]