Forum Discussion
Altera_Forum
Honored Contributor
14 years agoThanks for the replies.
I'm still rather confuse with different elf file size reported in various places. When I use the command line: nios2-elf-size test_sram.elfResult: 29228Bytes = 29KB
text data bss dec hex filename
21764 6728 736 29228 722c test_sram.elfWhen I checked the file size of the .elf file using window explorer --- Quote Start --- Result: 257KB --- Quote End --- Which should I refer to while estimating the size of the SRAM for this current application? Regarding the stack and heap, I tried:nios2-stackreport Result: --- Quote Start --- Info: (test_sram.elf) 28 KBytes program size (code + initialized data) Info: 4060 Bytes free for stack + heap. --- Quote End --- Does this mean that I need an SRAM with minimum size of = (4060KBytes + (size of elf which i'm still confused with) ) ? The code I'm trying with contains merely a printf of a Hello World, isnt 4MBytes a little too much for that?