this is for the .o files that get linked for the final kernel binary.
it doesn't count KFS, which is the largest part.
$ find kern/ -name built-in.o -exec du -h {} + | sort -hr
[rearranged and indented]
15M kern/drivers/built-in.o
12M kern/drivers/net/built-in.o
4.9M kern/drivers/net/mlx4/built-in.o
4.0M kern/drivers/net/bnx2x/built-in.o
1.3M kern/drivers/net/mlx4u/built-in.o
1.2M kern/drivers/net/udrvr/built-in.o
3.0M kern/drivers/dev/built-in.o
76K kern/drivers/timers/built-in.o
9.7M kern/src/built-in.o
2.6M kern/src/net/built-in.o
1.6M kern/src/ns/built-in.o
496K kern/src/ktest/built-in.o
3.3M kern/arch/x86/built-in.o
336K kern/arch/x86/vmm/built-in.o
240K kern/arch/x86/vmm/intel/built-in.o
664K kern/lib/built-in.o
296K kern/lib/crypto/built-in.o
120K kern/lib/random/built-in.o
96K kern/lib/zlib_deflate/built-in.o
88K kern/lib/zlib_inflate/built-in.o
So about 29 MB of code. Add to it KFS's binary blob (mine happens to
be 73 MB), and you get 102 MB:
$ du -h obj/kern/*
[trimmed]
106M obj/kern/akaros-kernel
102M obj/kern/akaros-kernel-64b
30M obj/kern/akaros-kernel.gz
73M obj/kern/initramfs.cpio.o
That gives us the -64b version. On x86, we objcopy that to a format
that grub can handle, giving us 106MB. Compressed, it's back down to
30 MB.
--
You received this message because you are subscribed to the Google Groups
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.