padding granularity

R

ranjeet.gupta

Dear All

What is padding granularity ? Please give me the basic concept
of this.

Regards
Ranjeet
 
L

Lawrence Kirby

Dear All

What is padding granularity ? Please give me the basic concept
of this.

It isn't to my knowledge an established term in the context of the C
language, so it might help if you give some context.

"Padding" is space that the compiler can put between (strictly after)
structure members. This is done to make sure that the following member is
aligned appropriately. This is done for efficiency reasons, for example
the architecture may not directly support unaligned access to certain data
types (e.g. a "word" might have to be aligned on a "word" boundary).

"Padding granularity" might relate to this concept of alignment. However a
quick search on Google didn't come up with anything specifically related
to this or C in general.

Lawrence
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top