Forum Discussion
Altera_Forum
Honored Contributor
15 years agoI have been working this afternoon on solving this issue. It is difficult to proceed when things like this hold you up!
It is not a solution, but just a theory based on empirical evidence through fiddling with my own code. Please note that I have done very little investigating into how elf2flt works, so consider this when reading my theory. I would LOVE to have any of my errors corrected by someone familiar with the topic. It seems that there is some sort of generic limitation with code size or stack size or something when executing elf2flt. I have adjusted my stack size parameter being passed to elf2flt from the default 4KB to 64Kb to 256Kb to 512Kb to 2MB. None of these adjustments made the problem go away. The one thing that did work for me, however, is converting some static array variables (put on the stack) to dynamically allocated arrays (heap space). This immediately solved the problem. The only "downside" is the housekeeping involved with the dynamically allocated variables... no big deal. This has all lead me to believe that there is, in fact, some code size/variable size/stack size boundary that CANNOT be exceeded regardless of what the stack size parameter is set to. Again, please, if anyone knows what is really going on... I am more than interested in hearing a competent answer. Regards, Jason