内存

在这里插入图片描述

  • 栈区:默认编译参数下,Windows:1M,Linux:8-10M。
    使用-Wl,--stack,16777216编译参数指定栈大小(此命令为16M)。
    对于数组:Windows 5e5,Linux 2e6。

  • 全局(静态)区(数据段):Windows:<2G(1.9G),Linux:<8.5G(8.4G)
    对于数组:Windows <5e8(4.9e8),Linux >2e9(2.1e9)

  • 堆区:没有限制

posted @ 2025-07-20 12:14  椰萝Yerosius  阅读(15)  评论(0)    收藏  举报