Windows 64-Bit Edition
How to Port Drivers to 64-Bit Windows
少し注意が必要なのは、intは32bitだが、64bitアラインされること。
struct A {sizeof(struct A)は32bitでも64bitでも8だが、
int a[2];
}
struct B {64bitだとdefaultでは、sizeof(struct B)が8、sizeof(struct C)が16になる。
int b;
}
struct C {
struct B b;
int c;
}
64bitにおけるintのアラインのされかたは、32bitでのshortの扱いと同じ。