[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: about "size" from binutils



On Sun, 27 Jan 2008 19:37:13 +0100
"Simon Jolle \"sjolle\"" <urandomdev@gmail.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi Debian users
> 
> I didn't found information about "/usr/bin/size" via Google. I don't
> understand the purpose of this command.
> 
> For school I need to complete some exercises.
> 
> $ size /bin/ls
>    text    data     bss     dec     hex filename
>   75375     928    1104   77407   12e5f /bin/ls
> 
> What does this Output mean? What are the sections "text", "data" and "bss"?

Unix-Speichermodell für Prozesse: 
text ... Anweisungen (das, was im I-Cache landet)
data ... "Harte" Variablen (z.B. int i)
bss ... dynamischer Speicher (z.B. std::vector myvec)

> 
> Why the "dec" size differ from "ls" output?

"dec" ist erst mal nur die Summe der obigen Abschnitte, in die Datei
kommen dann noch weitere Informationen, z.B. für den ELF-Loader.

> 
> $ ls -al /bin/ls
> - -rwxr-xr-x 1 root root 78004 2007-09-29 14:51 /bin/ls

$ ls -al /bin/ls
-rwxr-xr-x 1 root root 85536 2007-01-30 21:38 /bin/ls

Ich hab 'n größeres ;)

Dirk.


Reply to: