BBS3000
New Contributor
2 years agounable 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.