我的电脑是64位的Mac。
每个内存位置存储多少字节的信息?
当我在gdb中尝试某些操作时
x /2x first
0x7ffff661c020: 0xf661b020 0x00007fff
我的代码是
#define PUT(p, val) (*((size_t *)(p)) = (val))
PUT(first, (size_t)some pointers);
我使用gcc -g进行编译。
似乎只有4个字节存储在0x7ffff661c020中。0x00007fff
存储在0x7ffff661c024中。为什么不能将0x00007ffff661b020存储在0x7ffff661c020中呢?
谢谢。