filesize - executable size compiled by gcc -
hello experts please answer following query. size of binary file 'test' used following commands in linux fedora , compiled gcc compiler.
$ll -h test -rwxrwxr-x. 1 user user 4.3m feb 8 11:17 test $size test text data bss dec hex filename 891714 244788 26664 1163166 11bf9e test
my question right command know size of executable file 'test'? why 2 commands shows different results ?
the ls
program gives file size, 4.3m (actually, 4.5m because -h
uses wrong prefix… not relevant).
the sizes
program gives section sizes. not sections included, why smaller. program has debug information included, not printed out sizes
.
Comments
Post a Comment