Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Huge perl binary file

by chromatic (Archbishop)
on Jul 13, 2012 at 04:56 UTC ( #981558=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Huge perl binary file
Download Code
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...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://981558]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (14)
As of 2014-09-18 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (120 votes), past polls