Top "Memory-alignment" questions

Memory alignment means that objects and variables reside at particular offsets in the system's memory.

How is a vector's data aligned?

If I want to process data in a std::vector with SSE, I need 16 byte alignment. How can I achieve …

c++ vector sse memory-alignment allocator
Aligned and unaligned memory accesses?

What is the difference between aligned and unaligned memory access? I work on an TMS320C64x DSP, and I …

c++ c memory memory-alignment omap
What does it mean to align the stack?

I have been a high-level coder, and architectures are pretty new to me, so I decided to read the tutorial …

c assembly gcc x86 memory-alignment
How to allocate and free aligned memory in C

How do you allocate memory that's aligned to a specific boundary in C (e.g., cache line boundary)? I'm looking …

c alignment memory-mapped-files memory-alignment
__memcpy_sse2_unaligned - what does this mean in detail?

While working on my compiler I got this error: Program received signal SIGSEGV, Segmentation fault. __memcpy_sse2_unaligned () at ../sysdeps/…

c ocaml memory-alignment php-internals
Making std::vector allocate aligned memory

Is it possible to make std::vector of custom structs allocate aligned memory for further processing with SIMD instructions? If …

c++ memory-management memory-alignment allocator
Memory alignment of arrays

I am having trouble aligning memory for DMA transfer on the Cell processor. I need the last 4 bits of an …

c memory-alignment dma
Why can't C compilers rearrange struct members to eliminate alignment padding?

Possible Duplicate: Why doesn't GCC optimize structs? Why doesn't C++ make the structure tighter? Consider the following example on a 32 …

c struct compiler-optimization memory-alignment
What is aligned memory allocation?

I also want to know whether glibc malloc() does this.

malloc memory-alignment
Cross-platform ALIGN(x) macro?

I would like to create a struct that has a certain alignment. I would like to use the same struct …

visual-c++ g++ memory-alignment