L
Lubdha Khandelwal
I'm using VS2005 to compile a file that only contains a single large
(100MB) hard-coded char array.
It looks like:
unsigned char test[] = {
0x50,0x4b,0x3,0x4,0x14,0x0,0x0,0x0,0x8,0x0,0x5c,0x6c,
...................
.........................
};
As mentioned, the length of test[] is ~100MB and the size of the
test.c file is ~500 MB with all the punctuation etc. While compiling,
cl.exe exits with the error:
test.c(622984) : fatal error C1060: compiler is out of heap space
I am running this with 2G RAM, and I can see the cl.exe process
consuming >1.5G of memory before it gives up.
Any ideas why cl is using 3 times as much memory?
Is there any "hard" limit on the size of the array, or the file?
Thanks,
Lubdha
(100MB) hard-coded char array.
It looks like:
unsigned char test[] = {
0x50,0x4b,0x3,0x4,0x14,0x0,0x0,0x0,0x8,0x0,0x5c,0x6c,
...................
.........................
};
As mentioned, the length of test[] is ~100MB and the size of the
test.c file is ~500 MB with all the punctuation etc. While compiling,
cl.exe exits with the error:
test.c(622984) : fatal error C1060: compiler is out of heap space
I am running this with 2G RAM, and I can see the cl.exe process
consuming >1.5G of memory before it gives up.
Any ideas why cl is using 3 times as much memory?
Is there any "hard" limit on the size of the array, or the file?
Thanks,
Lubdha