内存首地址8字节对齐分析
程序员文章站
2024-03-14 11:02:16
...
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
static uint8_t *pucAlignedHeap;
static uint8_t ucHeap[10 * 1024];
pucAlignedHeap = ( uint8_t * ) ( ( ( uint32_t ) &ucHeap[ 8 ] ) & ( ~( ( uint32_t ) 0x07 ) ) );
上一篇: [ACTF2020 新生赛]Web汇总
下一篇: 8位字节对齐算法
推荐阅读