memory-alignment
Is the byte alignment requirement of a given data type guaranteed to be a power of 2?
Is the byte alignment requirement of a given data type guaranteed to be a power of 开发者_StackOverflow2?[详细]
2023-02-14 16:14 分类:问答std::map nodes alignment
I\'m facing something very amazing. (Scenario: Win7 pro 64 bit, VC2008 compiling 32 bit code) Say a main program instantiate a Class that uses a std::map.[详细]
2023-02-10 10:17 分类:问答GCC implicit alignment problem. (64-bit code)
How can I explicitly disable alignment on defined variable in gcc? Take this code: typedef struct{ unsigned long long offset;[详细]
2023-02-08 01:42 分类:问答Parsing binary message stream in C/C++
I\'m writing a decoder for a binary protocol (Javad GRIL protocol). It consists of about a hundred messages, with data in the following format:[详细]
2023-02-05 13:35 分类:问答Behind Windows x64's 44-bit virtual memory address limit
http://www.alex-ionescu.com/?p=50. I read the above post. The author explains why Windows x64 supports only 44-bit virtual memory address with singly linked list example.[详细]
2023-02-02 07:08 分类:问答memory alignment issues with union
Is there guarantee, that memory for this object will be properly aligned if we create object of this type in stack?[详细]
2023-01-31 08:24 分类:问答How to allocate from heap with the correct memory alignment for InterlockedIncrement function?
This code seems to wo开发者_如何学JAVArk, but have I used the InterlockedIncrement function correctly? The correct memory alignment of m_count is of my primary concern. Assume we\'re on a x86-64 syste[详细]
2023-01-28 20:15 分类:问答What exactly is an 'aligned pointer'?
Wo开发者_如何学运维uld somebody please tell me what an aligned pointer actually means?It means that the address being pointed at is evenly divisible by some factor.[详细]
2023-01-28 07:14 分类:问答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 on Assembly here:[详细]
2023-01-24 18:52 分类:问答combining packed data with aligned memory access
I\'m trying to perform a memory optimization that should be theoretically possible but that I\'m starting to doubt is within arm-elf-gcc\'s capability.Please show me that I\'m wrong.[详细]
2023-01-23 05:44 分类:问答