reliable way to determine size of CPU registers using sizeof(int) ?
No, this only tells you the compiler's preferred size for int
Also you have multiple register size (xmm, eax, etc...)
On Unix, you can use the uname system call to query the system architecture, but this still only effects not the physical CPU but what the OS can use of it
Обсуждают сегодня