Forum Discussion
Running Optimization Flags for NiosV app and bsp
- 2 years ago
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
Hi,
Greetings and welcome to Intel's forum.
Please give me some time to check and get back to you with update.
Thank you.
Regards,
Fathulnaim
Hello,
For more information, I looked at the sw/app/CMakeLists.txt and realized it does include "include(../bsp/toolchain.cmake)." Correct me if I am wrong, but this makes me believe that adding optimization on the bsp also optimizes the app code?
I have tried adding additional flags according to the embedded design handbook.
niosv-bsp -c <path to settings.bsp> -qpf=<path to .qpf> --cmd="set_setting hal.make.cflags_optimization {-Os}" --cmd="set_setting hal.enable_reduced_device_drivers" --cmd="set_setting hal.enable_lightweght_device_driver_api"
(Note: it would not let me enable the small c library...)
My application code is still rather large and I am curious if there is any additional flags or options for niosv