Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12745 Discussions

NIOS II EDS compiliation program size

Altera_Forum
Honored Contributor II
963 Views

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
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
315 Views

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?
0 Kudos
Altera_Forum
Honored Contributor II
315 Views

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
0 Kudos
Reply