What exactly does the size command (sans any flags) return in linux? if we are using a compiled assembler sourcecode, will this return the size useded by the program?
many thanks
|
What exactly does the size command (sans any flags) return in linux? if we are using a compiled assembler sourcecode, will this return the size useded by the program? many thanks | |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
From the man page: GNU size utility lists the section sizes---and the total size---for each of the object or archive files objfile in its argument list. By default, one line of output is generated for each object file or each module in an archive. Here's an example output from running text data bss dec hex filename 6803811 221704 3419168 10444683 9f5f8b foo.static This gives you the size of the text segment (also known as code segment), data segment, block started by symbol. dec is the size of the text, data and bss size added together. hex is the same number in hexadecimal. | |||
|
feedback
|
man sizeand didn't understand something in the information provided. As it is, the best answer is repeating the information from the man page. – Pascal Cuoq Dec 8 '09 at 12:37