How to disable FPU on Intel Core2 Duo

How to disable FPU on Intel Core2 Duo

Can I disable FPU on Intel Core 2 Duo CPU? I would like to measure performance of my code where FPU is not available ie. all FP instructions are executed in emulation mode. I was able to do that some 10 years ago by using CR0 register.

Thanks

Adam

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Quoting - adamczez
Can I disable FPU on Intel Core 2 Duo CPU? I would like to measure performance of my code where FPU is not available ie. all FP instructions are executed in emulation mode. I was able to do that some 10 years ago by using CR0 register.

Thanks

Adam

I think that when you disable FPU processor will generate exception when it tryes to execute FPU instruction. I think that FPU instructions must be emulated by software (look at yourcompiler options).

Leave a Comment

Please sign in to add a comment. Not a member? Join today