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++
Avisos
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Memory footprint

Altera_Forum
Colaborador Distinguido II
1.209 Vistas

What are the typical size ranges you can expect for the Kernal. How much working memory does it require.  

My feeling is 2Meg for the Kernal and 4 Meg total for RAM should do it. Does that seem reasonable?
0 kudos
2 Respuestas
Altera_Forum
Colaborador Distinguido II
519 Vistas

I build out the file"vmlinux" 7.41 MB (minimize) 

and the kernel is 777kB after uclinux working. 

 

what about the relationship about them(vmlinux and kernel)? why not they are the same size?
Altera_Forum
Colaborador Distinguido II
519 Vistas

Hi mountain8848, 

 

> what about the relationship about them(vmlinux and kernel)? 

> why not they are the same size? 

 

vmlinux is an elf file and it contains lots of extra linker sections like comments and debug 

information that are not allocated space in your memory. For example, my vmlinux size is 

about 11 MB, but the allocated memory (in the elf) is about 1.3 MB. 

 

You can get a better sense for the amount of memory your kernel code will occupy 

by stripping the elf: 

 

$ nios2-elf-strip vmlinux 

 

Or you can just use objdump and add up the sections that have the ALLOC attribute. 

But note that this does not account for any dynamic memory that may be needed. 

 

Regards, 

--Scott
Responder