Compiling beyond 256MB


This error happens when functions are located in a memory location more than 256MB apart from the main memory because the Nios II compiler uses the call instruction which has 256MB boundary limitation.


1) In ACDS version 13.1, the -relax-all option is implemented to use the callr instruction instead of call instruction. In Software Build Tools for Eclipse, add the -Wa,-relax-all option in the Application or BSP properties as user flags. 

This workaround may impact the software performance as callr instruction uses more assembly instructions compared to the call instruction.

Leave a Reply