[Tutor] what is 'doubleword alignment'?

Albert-Jan Roskam fomcl at yahoo.com
Sat Jul 16 22:53:55 CEST 2011


Got it already, I think. The word boundary of one chunk of information (in my case 8 bytes) is aligned in the computer's memory such that the boundary's address is a power of two.

But correct me if I'm wrong ;-)

Cheers!!

Albert-Jan



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--- On Sat, 7/16/11, Albert-Jan Roskam <fomcl at yahoo.com> wrote:

From: Albert-Jan Roskam <fomcl at yahoo.com>
Subject: [Tutor] what is 'doubleword alignment'?
To: "Python Mailing List" <tutor at python.org>
Date: Saturday, July 16, 2011, 8:23 PM

Hello,

What is 'doubleword alignment'? It is used in the following sentence: "Fill up the buffer with the correctly encoded numeric and string values, taking care of blank padding and doubleword alignment." 

I know that the buffer is comprised of variables of 8-bytes, or multiples thereof, each. Numeric variables are 8 bytes, char vars are at least 8 bytes. For example, a 10-byte value is 'ceiled' to 18 bytes. This is done with padding (spaces, I think). But the aligment part...?

TIA

Cheers!!

Albert-Jan



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----Inline Attachment Follows-----

_______________________________________________
Tutor maillist  -  Tutor at python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110716/87e74ee6/attachment-0001.html>


More information about the Tutor mailing list