Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21615 Discussions

nios2 design help

Altera_Forum
Honored Contributor II
1,570 Views

hey guys can u tel me why .text file wil so big like 16kb-20kb n all .. is there any way i can change settings to make it small..i dont want any special features in my nios 2 design.. im expecting its size to be small. any heads up... pls

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
895 Views

try thsese setting on System Library Property 

check: 

Program never exits 

Reduced device drivers 

Small C library 

 

uncheck: 

Support C++ 

Clean exit 

 

also smaller Max file descriptors like 32 -> 4 or so. 

 

have you tried that?
0 Kudos
Altera_Forum
Honored Contributor II
895 Views

i have tried wit reduced drivers and small c. bu stil no great difference.. i wil try others.. 

stil how to make it use only criticle drivers. 

how do i know wat driver it should use..  

and wat r optimal stack size for interrupts n exception(r they needed).. im not using any interrupt from my code perspective.  

thanks for reply.... expecting more help..pls
0 Kudos
Altera_Forum
Honored Contributor II
895 Views

Don't ask the same question multiple times please. 

Try to turn on the compiler "optimize for size" option (-Os)
0 Kudos
Reply