Re: about "size" from binutils
Hallo Dirk,
Dirk Neumann <neum_d@yahoo.de> wrote:
> On Sun, 27 Jan 2008 19:37:13 +0100
> "Simon Jolle \"sjolle\"" <urandomdev@gmail.com> wrote:
>
>> 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)
Unter dynamischem Speicher habe ich bisher malloc und sowas verstanden?
Kann man im Binary gleich angeben, dass zu Beginn des Programms ein
malloc vom System gemacht wird? Oder was ist der bss?
Schöne Grüße, Jörg.
--
“UNIX was not designed to stop people from doing stupid things, because
that would also stop them from doing clever things.”
(Doug Gwyn)
Reply to: