file sizes, and cp

Q&A's, tips, howto's
Locked
tom
Posts: 168
Joined: Wed Jul 14, 2004 10:32 pm

file sizes, and cp

Post by tom »

howdy guys,

I was just messing around, and compiled newlisp 8.6.0 against uclibc. the resulting newlisp binary is 147k. The binary after a "normal" compile is 164k. The uclibc version is a whopping 17k smaller.

I noticed something strange. if I copy newlisp to another name, it adds 2k.

Code: Select all

# du -h newlisp
147k     newlisp

# cp -p newlisp bob

# du -h bob
149k     bob
if I copy newlisp to /usr/local/bin, the file grows 4k.

What's up with that? Google didn't help a bit.

pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

This doesn't happen with me. My newlisp binary has a size of 163248 bytes and will stay this size after copying and moving.

Or it is caused by that uclibc library, or you suffer from some strange Linux virus... which maybe part of this uclibc!

Peter

eddier
Posts: 289
Joined: Mon Oct 07, 2002 2:48 pm
Location: Blue Mountain College, MS US

Post by eddier »

Mine keeps the same size too. I'm using Debian testing with the 2.6 kernel. I think thats suppose to use and update the latest libraries. I update every day. But, sometimes cutting edge is a drag because I will get a testing version (broken) of software that over writes a working version.

Eddie

Locked