Forum Discussion

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

Running Optimization Flags for NiosV app and bsp

I am trying to condense my code to resolve a "can't place all RAM cells in design" compilation error and am new to the niosv processor. Is there a way to run optimization flags on both niosV application code along with bsp?

I have looked through the niosv design handbook and I have been able to optimize my bsp by running

niosv-bsp -c <path to settings.bsp> -qpf=<path to .qpf> --cmd="set_setting hal.make.cflags_optimization {-O2 -fno-tree-vectorize}"

Is there a similar -O2 or -Os command that can be run using niosv-app? Or small c library support similar to niosii?

  • Hi,

    This is from the NiosV Embedded Processor Design Handbook on page 81.

    This is from the NiosV Processor Software Developer Handbook on page 103.

    Thank you.

    Regards,

    Fathulnaim

8 Replies