Any pointer arithmetic should be performed using variables of type long regardless if in 32-bit or 64-bit mode.
无论是处于32位模式下还是处于64位模式下,都应当使用长型变量执行所有指针算法。
Global variables are never allocated to registers. Global variables can be changed by assigning them indirectly using a pointer, or by a function call.
全局变量不会被分配在寄存器上,修改全局变量需要通过指针或者调用函数的方式间接进行。
Since pointer, int, and long are no longer the same size on 64-bit systems, problems may arise depending on how the variables are assigned and used within an application. A few tips in this regard.
由于指针、int和long在64位系统上大小不再相同了,因此根据这些变量是如何赋值和在应用程序中使用的,可能会出现问题。
应用推荐