Forum Discussion

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

NIOS II EDS compiliation program size

Hi all,

i am compiling a Program using NIOSII EDS 10.0SP1. My (onchip-)Memory has a size of 49152Bytes. The Compiler tells me:

Info: (cas02_PGM1.elf) 44 KBytes program size (code + initialized data).

Info: 1796 Bytes free for stack + heap.

But this are only about 46k?!? So i am missing 2kBytes...

Can anybody help me?

Thanks in advance

Paddy

2 Replies

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

    So, you are using the On-Chip memory as the SDRAM for the Nios II?

    In except of the 2k you are missing, can you load the hello-world programm or any other on the system you created?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    yes i am using the onchip-memory as the program-memory for my NIOS. When i modify the code (add some functions) the Complier displays the following:

    Info: (cas02_PGM1.elf) 46 KBytes program size (code + initialized data).

    Info: 2184 Bytes free for stack + heap.

    That is what i expected (48k). Any change in my code changes the free bytes (thats o.k), but sometimes free+used bytes are not the same as the size of my memory. I can reproduce this behaviour with other programs...

    Paddy