Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

8.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".