as memory use for large bss arrays

Andi Kleen
Fri Jan 11 17:13:00 GMT 2008

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 

GNU assembler 20060927 (SUSE Linux) on x86-64 linux.


More information about the Binutils mailing list