Community
cancel
Showing results for 
Search instead for 
Did you mean: 
adamczez
Beginner
84 Views

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
0 Kudos
1 Reply
jancino
Beginner
84 Views

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).