(1) 基本数据类型的对齐每个类型的起始地址必须是自身大小的整数倍: char(1字节) → 任意地址。short(2字节) → 地址是2的倍数(如0x1002, 0x1004)。int(4字节) → 地址是4的倍数(如0x1004, 0x1008)。double(8字节) → 地址是8的倍数(如0 Read More
posted @ 2025-07-16 16:20 靖意风 Views(13) Comments(0) Diggs(0)
$ sudo apt-get install build-essential module-assistant $ sudo apt-get install gcc-multilib g++-multilib $ gcc -m32 test.c $ file a.out a.out: ELF 32- Read More
posted @ 2025-07-16 15:06 靖意风 Views(9) Comments(0) Diggs(0)