digitalmars.D.bugs - large static arrays
- Takuan (7/7) Aug 07 2004 static char i[6000000];
static char i[6000000]; int main() { return 0; } === While compiling this code DMD uses up to 500mb of memory, resulting executable size is 6MB, even if that array is unreferenced. Compile time is awfully slow too. DMD 0.98 on WinXP.
Aug 07 2004