This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]