16MB static arrays again...

rikki cattermole via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 24 01:34:24 PDT 2016


On 24/08/2016 7:50 PM, Tomer Filiba wrote:
> #WEKA #INDUSTRY
>
> I found this post from 2007
> http://forum.dlang.org/post/fdspch$d3v$1@digitalmars.com that refers to
> this post from 2006
> http://www.digitalmars.com/d/archives/digitalmars/D/37038.html#N37071 --
> and I still don't realize, why do static arrays have this size limit on
> them?
>
> Any linker issues should be contained to the linker (i.e., use a
> different linker, fix your linker). As for cross-device -- if C lets me
> use huge static arrays, why should D impose a limit? As for executable
> failing to load -- we have ~1GB .bss section and a ~100MB .rodata
> section. No issues there.

You're welcome to fix optlink https://github.com/DigitalMars/optlink
Or write a whole new linker.

Of course there is no reason to not change this for -m32mscoff and -m64 
on Windows at least that I am aware of.


More information about the Digitalmars-d mailing list