cpuinfo

Hello,

I’m just wondering if there is a version of cpuinfo for QNX? Or do I have to run print_syspage() to find out this kind of information?

I’m trying to get the clock speed and whether my processor supports MMX extensions or not.

Thanks for any help!!

Paul

Paul,

At what time are you trying to find this information? Boot time or in a script or in your program when it starts?

From a script/command line you can use ‘pidin in’ or ‘sin in’ to get the CPU speed and type (I don’t think it gives MMX info tho).

There is a cpuinfo call you can make from your code. Just check the helpviewer for the exact structures returned. That definitely has CPU speed and MMX extention flags.

Tim

Thanks Tim,

Thats great. I knew I could do it in the code, but I was just wondering if there was some utility somewhere that would tell me if the processor had MMX extensions.

Thanks,

Paul

There is also a cpuinfo utility also located here.

hostwork.com/users/matt/qnx/cpuinfo/

Cheers.

Thanks wicked,

Thats exactly what I was looking for!

Paul