[Spread-users] Why and how data aligned?
Jonathan Stanton
jonathan at cnds.jhu.edu
Thu Oct 24 10:47:33 EDT 2002
For the same reason other cross-platform network systems have padding.
Different hardware/OS architectures have different alignment restrictions
for datatypes. The padding is used to make sure certain buffers start at 4
byte aligned addresses. For example if you receive into a buffer that
starts at an odd number memory address on a sparc/solaris system and try
to read the first 4 bytes as an integer, you will get a SIGBUS error
signal because the access is unaligned.
Jonathan
On Thu, Oct 24, 2002 at 02:06:48PM +0900, gulekim at samsung.co.kr wrote:
>
> Hi, all.
>
>
> Spread has alignment padding algorithm.
>
> Why and how this needed?
>
>
> Anybody can help me.
>
> Thank you.
>
> Bye.
>
>
>
> _______________________________________________
> Spread-users mailing list
> Spread-users at lists.spread.org
> http://lists.spread.org/mailman/listinfo/spread-users
--
-------------------------------------------------------
Jonathan R. Stanton jonathan at cs.jhu.edu
Dept. of Computer Science
Johns Hopkins University
-------------------------------------------------------
More information about the Spread-users
mailing list