Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Explanation of all columns in size command output?

Tags:

linux

After executing a size command I got the following output:

size main.out   

       text    data     bss     dec     hex filename  
       1207     552       8    1767     6e7 main.out

I understood the meaning of the text, the data and the bss segment.

What is the meaning of the dec and hex columns?

like image 972
Sanket Joshi Avatar asked Nov 15 '25 20:11

Sanket Joshi


1 Answers

text gives you the size of the text segment (or code segment).

data gives you the size of the data segment.

bss gives you the size of the block started by symbol segment.

dec is the size of the text, data and bss size added together in decimal, and hex is the same number in hexadecimal.

like image 189
Alex Garcia Avatar answered Nov 18 '25 14:11

Alex Garcia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!