Customers




Developers Resources

Blog

05.02.2010 /Wp64 switch and template processing error
While maintaining the analyzer Viva64 (included into PVS-Studio) we often comment upon the switch /Wp64 of Microsoft Visual C++.»

03.02.2010 Parallel notes N1 - OpenMP technology
In the next few posts we will tell you about using multi-core processors in practice.»

29.01.2010 64-bit technologies - one more trend in the modern software
In the blogs and forums, there is much discussion of multi-core processors as an evident step of computer system development.»

Blog RSS

News

2.02.2010 "Lessons of 64-bit C/C++ software development" are now available on our site.»

1.02.2010 PVS-Studio 3.45 New Version Released!»

21.01.2010 PVS-Studio 3.44 New Version Released!»

News RSS

Articles

10.12.2009 PVS-Studio FAQ
This paper contains some questions and answers about PVS-Studio code analyzer by OOO "Program Verification Systems".»

09.12.2009 VivaCore FAQ
This paper contains some questions and answers about VivaCore C/C++ code analysis library by OOO "Program Verification Systems"»

23.11.2009 PVS-Studio: using the function "Mark as False Alarm"
The article describes and demonstrates by an example the use of PVS-Studio 3.40 new function "Mark as False Alarm". »

Articles RSS

Bookmark and Share

Data alignment

Data alignment is the strategy of arranging data in main memory according to certain rules contributing to speed-up of access to them.

When working with memory microprocessors use a machine word of different sizes as a main unit. As a rule, the machine word equals 2^k bytes. When saving a data object into memory some field consisting of several bytes can intersect with the "natural boundary" of words in memory. Some processor models cannot address those data in memory which violate the boundaries of machine words. Others can address data without alignment but less effectively than when addressing the data within the full "machine word" in memory.

Data alignment is performed with the help of empty memory cells between data objects. It increase the size of the data structures but speeds up access to data.

References

  1. Jonathan Rentzsch. Data alignment: Straighten up and fly right.
  2. Wikipedia. Data structure alignment.
  3. Noel Llopis. Data Alignment.
  4. Andrey Karpov. Optimization of 64-bit programs.

Powered by RSDN Authoring Pack