Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

nios2 design help

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

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Don't ask the same question multiple times please.

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