Hacker News new | ask | show | jobs
by ihenriksen 4548 days ago
The #pragma pack directive in C++ might be useful for stack allocations. http://stackoverflow.com/questions/3318410/pragma-pack-effec... For heap allocation you have _aligned_malloc() and memalign().