There are 3 most obvious advantages of 64-bit processors over their 32-bit counterparts: extended address space, capacity increase, and larger number of general-purpose registers.
type
The function of printing an expression type
Very often I see debates on forums about the type that this or that expression will have. So, I decided to make a little note in the blog to refer to an example of code that prints the type of an expression and information about it:
Change of type alignment and the consequences
When porting software one of the task a developer faces is to change types’ sizes and rules of their alignments.
Once my attention was attracted by a message in RSDN forum:
Today I have faced a problem in Linux. There is a data structure consisting of several fields: 64-bit double, 8 unsigned char and one 32-bit int. Altogether it is 20 bytes (8 + 8*1 + 4). On 32-bit systems sizeof is 20 bytes and everything is OK. But on the 64-bit Linux sizeof returns 24 bytes. That is, an alignment at the 64-bit border takes place.