Laura Creighton <[EMAIL PROTECTED]>:
If you are on a BSD or linux system you will have a file /proc/cpuinfo which can tell you what sort of CPU you have and
FreeBSD does not use /proc anymore and has it disabled by default.
whether it has MMX support or not. I don't know where Windows keeps such information. (And really old unix-and-unix-like systems don't have this file, but they don't have MMX either, so you are all set.)
For !Win32 systems we could rely on the -march settings of the processor. According to the manual, the GCC specifies MMX and SSE/SSE2/SSE3 for several archs, so we just have to test on them. For Win32 I just know about the CPUID hacks, but that's only interesting for runtime checks. Regards Marcus