NetBSD-Users archive

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

static binary size (was: sparc lost its binary pakages)



At Fri, 5 Dec 2025 04:16:51 +0300, Andrew Randrianasulu <randrianasulu%gmail.com@localhost> wrote:
Subject: Re: sparc lost its binary pakages
>
> > $ file build-x86_64-nb9.99.81-31.0.50/src/emacs
> > build-x86_64-nb9.99.81-31.0.50/src/emacs: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for NetBSD 9.99.81, with debug_info, not stripped
> > $ size build-x86_64-nb9.99.81-31.0.50/src/emacs
> >    text    data     bss     dec     hex filename
> > 19149051 358196 2911673 22418920 15615e8 build-x86_64-nb9.99.81-31.0.50/src/emacs
> > $ ls -l build-x86_64-nb9.99.81-31.0.50/src/emacs
> > -rwxr-xr-x  2 woods  wheel  141404440 Apr  2  2025 build-x86_64-nb9.99.81-31.0.50/src/emacs
> >
>
> wow, 141 Mbyte ? ;) It sure grown from its early days ;)

Well, yes, but most of that is debug info:  with debug_info, not stripped

The reason I posted the file(1) and size(1) output is that those are
what help you identify what is in the file and then distinguish between
the binary file-on-disk size vs. the actual program size and what's
relevant for worst-case runtime memory use (worst-case on a system like
NetBSD that does demand-paging of shared executable text pages that is).

The stripped file is "only" about 19 Mb, as hinted by the "text" size.

$ ls -l build-x86_64-nb9.99.81-31.0.50/src/emacs.stripped
-rwxr-xr-x  1 woods  wheel  19664232 Dec  7 14:17 build-x86_64-nb9.99.81-31.0.50/src/emacs.stripped

--
					Greg A. Woods <gwoods%acm.org@localhost>

Kelowna, BC     +1 250 762-7675           RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost>     Avoncote Farms <woods%avoncote.ca@localhost>

Attachment: pgpzepkPEKf3k.pgp
Description: OpenPGP Digital Signature



Home | Main Index | Thread Index | Old Index