Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Support for XIP

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

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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