On Wed, 15 Jun 2005 15:34:34 +0200, "Mehta Shailendrakumar "
<sh************ *******@de.bosc h.com> wrote in comp.lang.c:
Please don't top-post in technical groups. Material you add belongs
after quoted material you are replying to. I have reformatted your
post and added my answer after your question, where they belong.
"Lawrence Kirby" <lk****@netacti ve.co.uk> wrote in message
news:pa******** *************** *****@netactive .co.uk... On Wed, 15 Jun 2005 14:11:40 +0200, Mehta Shailendrakumar wrote:
see if this helps with sample code attachment
pack
#pragma pack( [ n] )
Note that the C language doesn't define a preprocessor directive called
#pragma pack. You compiler may provide one as an extension but you can't
assume that it will exist on other compilers or if it does it will act in
the same way.
Hello Lawrence,
I have fwded gcc compiler specific info.
Can you suggest portable way to control padding?
Thanks.
There is no portable way to control padding. Controlling padding is
not a C language issue, and is not necessary in any event.
And on some architectures attempting to modify padding will result in
hardware traps for misalignment.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.l earn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html