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
- farah2 years ago
New Contributor
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
- Oliver_I_Sedlacek2 years ago
Contributor
Apologies for the thread hijack but I've been trying to respond to Fathulnaim on my own thread https://community.intel.com/t5/Nios-V-II-Embedded-Design-Suite/Debugger-wont-connect-to-NIOS-II-hello-world-on-Cyclone-GX/m-p/1544031#M52319 and I just can't. I'm so frustrated by the forum software and my problem isn't resolved. Please investigate why I can't post and please remove this post as I really, really don't like to hijack another user's thread.