-
栈区:默认编译参数下,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) -
堆区:没有限制
栈区:默认编译参数下,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)
堆区:没有限制