On Wed, 27 Nov 2024, Corinna Vinschen wrote: > I'm not opposed to a switch statement consisting of an > IMAGE_FILE_MACHINE_ARM64 case and a default case adding "-???" or > something. Chances are so extremly slim that we'll ever see another > CPU emulated on x86_64, we can always add a case for that if it turns > out that I'm totally wrong, right?
OK, does the default case have to be a fixed string or can I use the hex? Lately it seems like MS is making the hex form almost "meaningful" - AMD64 is 0x8664 and ARM64 is 0xaa64. I don't know if they can keep that up for any new arch, but putting the value in there at least gives us something to go on until a new case can be added.