Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: basesrc



Matt Thomas wrote:

> Module Name:  basesrc
> Committed By: matt
> Date:         Thu May 18 00:43:09 UTC 2000
> 
>       [ stuff in basesrc/distrib ]
> 
> Log Message:
> 
> Compile things with -Os.  I wonder if compiling -Mno-pic for mips and vax
> would shrink them even more?

>From a discussion on tech-install about a year ago, I compiled the
world on i386 with -Os to investigate space savings.  I've included the
results below...

I haven't looked at -Mno-pic on pmax - FWIW the best space-saver I'v
found for pmax bootblocks are

        -Os -mmemcpy -mno-abicalls -G 128

The -mmemcpy got back a surprising amount from memory.

Simon.
--
Well, what a waste of time :-)

        simonpc:i386/floppies/ramdisk 114# size ramdiskbin-O?
        text    data    bss     dec     hex     filename
        978912  45056   1153608 2177576 213a28  ramdiskbin-O2
        974816  45056   1153608 2173480 212a28  ramdiskbin-Os
        simonpc:i386/floppies/ramdisk 115# ls -l ramdiskbin-O?
        -rwxrwxr-x  1 root  wheel  1024000 Apr 16 14:23 ramdiskbin-O2*
        -rwxrwxr-x  1 root  wheel  1019904 Apr 16 18:16 ramdiskbin-Os*
        simonpc:i386/floppies/ramdisk 116# gzip -9 ramdiskbin-O?
        simonpc:i386/floppies/ramdisk 117# ls -l ramdiskbin-O?.gz
        -rwxrwxr-x  1 root  wheel  509294 Apr 16 14:23 ramdiskbin-O2.gz*
        -rwxrwxr-x  1 root  wheel  503614 Apr 16 18:16 ramdiskbin-Os.gz*

Based on what I've seen with -Os on the pmax I would have expected a
little more.  Maybe the i386 has fewer optimisations that take up more
space than the mips, but that theory would take a lot longer on my pmax
to test that the 2-odd hours the peecee took to do a "make build" :).

Anways, if we miss a single disk floppy install by about 5 or 6kB, it's
an option...

Simon.




Home | Main Index | Thread Index | Old Index