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