structure padding

  • Follow


hello,

 in linux the word length is 4 bytes.
 so when memory is allocated for a structure.
 it allocates as a word.
 so as to remove tht extra memory allocated ,we can use some  pragma
directives to avoid tht.
do anyone know tht pragma?

bye.

0
Reply sakthivel1984 (1) 3/11/2005 4:11:20 AM

phoenix wrote:
> in linux the word length is 4 bytes.
> so when memory is allocated for a structure.
> it allocates as a word.
> so as to remove tht extra memory allocated ,we can use
> some  pragma
> directives to avoid tht.
> do anyone know tht pragma?

The C language standards do not define a specific pragma for
that purpose. It is implementation specific, therefore off-
topic in comp.lang.c.

[CLC is not a general purpose C group, rather it deals
specifically with C as defined by the C language standards.]

Please consult a linux developers group.

-- 
Peter

0
Reply airia (1802) 3/11/2005 4:21:53 AM


1 Replies
30 Views

(page loaded in 1.606 seconds)


Reply: