Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Out of memory error while compiling the altia generated files using nios gcc compiler

nios2-elf-gcc.exe is used for compiling the altia generated images and font files. File size is 64MB. An error is thrown while compiling as out of memory.

Is there is any limitaion of file size or size of arrays inside the file in gcc compiler. If there is any how to update them to have for bigger size.

Thanks in advance.

11 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    At a guess nios2-elf-insert is java (or runs some java) that is trying to load the entire elf image into memory - and is failing because it is too big!

    I don't know what nios2-elf-insert does - I don't use the Altera build scripts at all.

    You might need to look at the the output of 'objdump -h' (and maybe 'objdump -p') to see which sections have gopt quite so big.

    If they are loadable sections you're going to have trouble finding enough memory on the fpga board to hold all the data!