malloc Alignment
MSDN Home
MSDN
MSDN Library
Development Tools and Language…
Visual Studio 2010
Visual Studio
Visual Studio Languages
Visual C++
64-Bit Programming with Visual…
x64 Software Conventions
Stack Usage
Stack Usage
Stack Allocation
Dynamic Parameter Stack Area C…
Function Types
malloc Alignment
alloca
Switch View :
Classic
Lightweight
ScriptFree
Site Feedback
Visual Studio 2010 - Visual C++
malloc Alignment
malloc
is required to return memory on a 16-byte boundary.
See Also
Reference
Stack Usage
Community Content
MichaelNicolella
only true for x64
Beware: malloc() only has a 16-byte alignment guarantee on x64 platform. On x86 it guarantees 8-byte alignment. $0$0 $0