Forum Discussion
Altera_Forum
Honored Contributor
17 years agoNios code size too big
Hi, I am developing a new Nios project that I am trying to squeeze into a small code space. We want to run it in a Cyclone III part without any external RAM. It will load from an EPCS device in...
Altera_Forum
Honored Contributor
17 years agoHi, 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.