mailing list of musl libc
 help / color / mirror / code / Atom feed
* Building libc separately from libm,librt,libpthread and others
@ 2013-04-07 14:43 Timerlan Moldobaev
  2013-04-07 14:52 ` John Spencer
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Timerlan Moldobaev @ 2013-04-07 14:43 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 479 bytes --]

Hi,

Can you please help with reducing the size of statically linked libc.a
library ?
Whereas the comparison table located in
http://www.etalabs.net/compare_libcs.html
claims the size of complete .a set as 333k, I got around 2M while building
the library on x86_64 with gcc version 4.1.1.
I suppose that might be caused by including in libc.a  object files that
belong to libm, librt, libpthread and others.
Am I right ?
Is there any way to compile libc.a solely ?

Thanks,
Tim.

[-- Attachment #2: Type: text/html, Size: 725 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Building libc separately from libm,librt,libpthread and others
@ 2013-04-08 12:54 Boris Alesker
  0 siblings, 0 replies; 12+ messages in thread
From: Boris Alesker @ 2013-04-08 12:54 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 1002 bytes --]

Rich Felker dalias@aerifal.cx wote:

>What is your goal in getting it smaller? With static linking, only the
> object files needed by a program end up in the resulting binary, so
> compiling less will not make your binaries any smaller. The only
> benefits I can think of are (1) reducing time to compile musl, and (2)
> storing the development files on an extremely small storage device. If
> you tell us what you're trying to do, we can offer better advice on
> how to meet your needs.


Well, the intention is to use musl package with possible source code
modifications and platform specific optimizations as an implementation for
standard c library. These sources will be visible to 3rd party developers
wishing to use libc services.
1. This is the opportunity to ask  whether  MIT license allows to do that.
2. As the developers have the freedom to use any compiler /linker they
want, can I  assume that only the required parts of the libc.a objects will
be included in the resulting executable ?

[-- Attachment #2: Type: text/html, Size: 1857 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-04-08 15:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-07 14:43 Building libc separately from libm,librt,libpthread and others Timerlan Moldobaev
2013-04-07 14:52 ` John Spencer
2013-04-07 15:43   ` Szabolcs Nagy
2013-04-07 16:04     ` John Spencer
2013-04-08  7:43   ` Timerlan Moldobaev
2013-04-08 15:43     ` Rich Felker
2013-04-07 16:21 ` Szabolcs Nagy
2013-04-08  3:32 ` Rich Felker
2013-04-08  8:31   ` Timerlan Moldobaev
2013-04-08 12:48     ` Boris Alesker
2013-04-08  3:47 ` nwmcsween
2013-04-08 12:54 Boris Alesker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).