Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

9.3.1.10. Use Compiler Optimization

For the best performance both in exception context and application context, use compiler optimization level -O3. Level -O2 also produces good results. Removing optimization altogether significantly increases exception response time.

For more information about compiler optimizations, refer to “Reducing Code Footprint in Embedded Systems” in the "Developing Programs Using the Hardware Abstraction Layer chapter".