http://qs321.pair.com?node_id=981558


in reply to Huge perl binary file

A few years ago, I compiled perl 5.10.0 on my old server. The binary file was 16KB...

Are you sure? I just compiled "Hello, world!" written in C with -Os and stripped out debugging symbols and it's 6200 bytes.


Improve your skills with Modern Perl: the free book.

Replies are listed 'Best First'.
Re^2: Huge perl binary file
by Anonymous Monk on Jul 13, 2012 at 11:52 UTC

    I guess it's not impossible. Mine's 7 KB:

    -rwxr-xr-x 2 root wheel 7264 17 Jun 13:53 /usr/local/bin/perl5.12. +4 % ldd /usr/local/bin/perl5.12.4 /usr/local/bin/perl5.12.4: libperl.so => /usr/local/lib/perl5/5.12.4/mach/CORE/libperl.so (0x +800648000)

    But libperl is 1,41 MB:

    -r-xr-xr-x 1 root wheel 1478298 17 Jun 13:52 /usr/local/lib/perl5/5 +.12.4/mach/CORE/libperl.so
      -rwxr-xr-x 1 root root 16350 Nov 28 2006 bin/perl* -r-xr-xr-x 1 root root 1129110 Nov 28 2006 lib/5.8.8/i686-linux/CORE/ +libperl.so*

        Could you do a file bin/perl? Is this really a binary? It could be some shell script that selects the configured perl binary from a list of configured alternatives...

        Sorry for any bad spelling, broken formatting and missing code examples. During a slight disagreement with my bicycle (which i lost), i broke my left forearm near the elbow. I'm doing the best i can here...