Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Support for XIP

Altera_Forum
Honored Contributor II
987 Views

Hello! 

Just a simple question: does the Nios2 toolchains supports the XIP (Execute in place) execution mode ?  

I've checked the flags of flat binaries and are all set to FLAT_FLAG_RAM. 

I'm trying to port php to a nios2 platform. 

I've successfully built it, but when i try to run it i get a "memory exhaust" message. 

The exec file size is about 1Mb. So it would be better to run it in flash memory instead of ram. 

 

Any idea ? 

 

Thanks in advance. 

 

Gabriele Brugnoni  

gabriele.brugnoni@dveprojects.com
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
274 Views

Currently the Nios II toolchain does not support PIC (position independent code), and as a result, XIP is not available for Nios II.

0 Kudos
Reply