谁决定任何数据类型或 struct 的大小(取决于32位或64位)?编译器还是处理器?例如,对于32位系统,sizeof(int)
是4字节,而对于64位系统,sizeof(int)
是8字节.
I also read that sizeof(int)
is 4 bytes when compiled using both 32-bit and 64-bit compiler.
Suppose my CPU can run both 32-bit as well as 64-bit applications, who will play main role in deciding size of data the compiler or the processor?