Forum Discussion
Altera_Forum
Honored Contributor
16 years agofloating point operations with and without Custom instruction floating point hardware
Hi I want to test the floating point multipication execution time in Nios II with and without Custiom Instruction floating point hardware. I taught without adding Custom Instruction floating...
Altera_Forum
Honored Contributor
16 years agoAs all your multiplications are with constant values, the compiler may be performing them at compile time and optimizing away the actual multiplication.
If that is the case, try declaring your variables "volatile" which should prevent the compiler from optimizing away the multiplications.