Sanket Joshi
Sanket Joshi

Reputation: 158

Explanation of all columns in size command output?

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?

Upvotes: 3

Views: 2517

Answers (1)

Alex Garcia
Alex Garcia

Reputation: 823

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.

Upvotes: 10

Related Questions