Forum Discussion

BBS3000's avatar
BBS3000
Icon for New Contributor rankNew Contributor
2 years ago
Solved

unable to reach __alt_heap_limit (at xxx) from the global pointer (xxx)

Hi,

I am porting a legacy NIOS2 project from Cyclone III to Cyclone V and getting a warning

warning: unable to reach __alt_heap_limit (at 0x5ff800) from the global pointer (at 0x4573cc) because the offset (1737780) is out of the allowed range, -32678 to 32767.

The code is "initializing" the heap and iterating from __alt_heap_start to __alt_heap_limit.

Looks like a 16-bit pointers limitation.

Any idea what is the problem?

Thanks!

  • Solved. Apparently -G0 flag was missed so the GPR was used.

2 Replies

  • BBS3000's avatar
    BBS3000
    Icon for New Contributor rankNew Contributor

    Solved. Apparently -G0 flag was missed so the GPR was used.

  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    Hi BBS3000,


    I am glad that you have solve the issue, I now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.


    Thanks.

    Regards,

    Aik Eu