Hi, to shrink the footprint you may try to:
in syslib properties:
- uncheck Support C++
- check Lightweight device driver
- check Reduced device drivers
- check Small C library
Obviously your program should respect these constraints.
in addition you could set compiler options both for your program and syslib (properties->C/C++ Build->Nios II Compiler-->General):
- Optimize Size (-Os)
- Debug level none
I suggest to modify these settings for the "Release" configuration and to set the "active build configuration" to Release.
So you can easily switch between the small version and the debug version of your software.