:: Re: [DNG] /usr merge
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Alessandro Vesely
Date:  
À: dng
Sujet: Re: [DNG] /usr merge
On Sun 29/Jan/2023 15:12:44 +0100 tito wrote:
> On Sun, 29 Jan 2023 14:59:39 +0100
> Harald Arnesen via Dng <dng@???> wrote:
>
>> tito via Dng [29/01/2023 14.45]:
>>
>> >> However, just the kernel is well over the size of a floppy.
>> > Not the kernel you need to boot a floppy...
>> >
>> > http://www.cs.cornell.edu/courses/cs414/2004su/homework/bootableLinux/bootable_linux.html
>>
>> Linux 2.4.25...
>
> https://hackaday.com/2021/05/24/running-modern-linux-from-a-single-floppy-disk/



Also look at a 2018 message showing a short version of sleep compiled with nolibc:

$ echo "int main() { return sleep(3);}" | gcc -Os -nostdlib -include ../nolibc/nolibc.h -s -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -lgcc -o sleep -xc -
$ ls -l sleep
-rwxr-xr-x 1 willy users 664 Aug 23 20:37 sleep
https://lwn.net/ml/linux-kernel/20180823190657.GA12057%401wt.eu/

At mine, for comparison, there's a 66-fold bloat:

ale@pcale:~/tmp$ ls -l `which sleep`
-rwxr-xr-x 1 root root 43808 Sep 24 2020 /bin/sleep


Best
Ale
--