This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
as memory use for large bss arrays
- From: Andi Kleen <andi at firstfloor dot org>
- To: binutils at sourceware dot org
- Date: Fri, 11 Jan 2008 15:55:51 +0100
- Subject: as memory use for large bss arrays
I made a mistake last night where I accidentially created an (uninitialized)
global array in C that was several hundred TB large. gcc didn't have much
trouble with it, but gas seemed to try to put it all into memory.
I managed to kill it while it was already grown to 3GB while
the machine was already swapping heavily.
Is there a specific reason as has to keep such large bss arrays in
memory?
GNU assembler 2.17.50.0.5 20060927 (SUSE Linux) on x86-64 linux.
-Andi