Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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.

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: => /usr/local/lib/perl5/5.12.4/mach/CORE/ (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/
      -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/*

        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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://981558]
[stevieb]: choroba my GPS home device is done, at least prototype v1 is. I'm just making sure all of my code does what it says now
[stevieb]: I test/prototype code on my Pi, then I migrate it over to Arduino when it's ready (if that's a better platform for what I'm doing). The whole RPi stuff was for learning at first, then it snowballed. I'm just trying to get my in-house CI...
[stevieb]: ...done, which obviously requires a specific hardware setup.
[stevieb]: I don't write tests for the lower-level distributions (ie. ICs, sensors etc) within those distributions, I have all tests in a master distribution which encompasess all of the sub-modules

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2017-06-25 22:56 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (572 votes). Check out past polls.