Forum Discussion
11 Replies
- Altera_Forum
Honored Contributor
I don't believe gcc has any internal limits - other than available system memory.
If you are compiling a 64MB C source file you probably need a lot of memory/swap. I'm not sure if windows has per process memory limits (cf ulimit), but it might be that the windows swap/page file isn't big enough. - Altera_Forum
Honored Contributor
How we can identify if it is windows issue.
- Altera_Forum
Honored Contributor
Watch the task manager ...
Does anything small compile? Some Cygwin issues might be reported as 'out of memory' when that isn't the real issue. - Altera_Forum
Honored Contributor
We are able to compile the file of 41MB size. Now when we added some more fonts size increased to 64MB. This i am not able to compile.
- Altera_Forum
Honored Contributor
I would compile each font in a separate file.
But look at the windows page file use in the task manager - Altera_Forum
Honored Contributor
I have been compiling memory error but compile in another pc and it works.
- Altera_Forum
Honored Contributor
I would compare the windows memory settings of both PCs.
then also the parameter that are used to start the NIOS IDE. - Altera_Forum
Honored Contributor
I verified the PF usage in windows. while compiling the font file it reaches 2.5GB and then it gone down to 640mb and the copmilation stopped with
out of memory error. The PF limit is around 5GB(5297172). - Altera_Forum
Honored Contributor
That looks like the gcc program image is exceeding the available user address space - 2GB on 32bit windows.
Depending of the exact contents of the font files, changing the compiler options (maybe turn off the optimiser if they are only data) might help. But you'll only hit the limit again later. I think you need to work out how to compile the fonts in small groups. - Altera_Forum
Honored Contributor
Thank you dsl for the response. We tried splitting the font files generated from Altia.Now the compilation is successful. But we increased the font characters and the files splitted are coming to 20 files. When we tried to compile them i am getting another error.
nios2-elf-insert nios2/rel/product.d09 --cpu_name NIOSII_processor --id 1995561430 --sidp 0x4005000 --stderr_dev jtag_uart --stdin_dev jtag_uart --stdout_dev jtag_uart OutOfMemoryError: Java heap space Any thoughts on this error.