Hello,
I wanted to start a project using the Floating Point Unit on the Tiva Launchpad (TM4C123GXL). I looked at the official workbok and copied the FPU-example. But there is something i dont understand. If I measure the clock cycles like described in the workbook i get 34790 clock cycles.
If i comment out the functions ROM_FPULazyStackingEnable() and ROM_FPUEnable() and restart the Launchpad the FPU should be turned off. But if i measure the clock cycles with disabled FPU I get 34392 clock cycles!
I thought the FPU would speed up the floating point arithmetics, but my program even needs some more clock cycles with the FPU turned on.
Did I unterstand something wrong about the FPU or are there some Compiler settings missing or something?
If you can explain me this behaviour I would be thankful.
Thank you for your answer.
(Link to the workbook: http://software-dl.ti.com/trainingTTO/trainingTTO_public_sw/GSW-TM4C123G-LaunchPad/TM4C123G_LaunchPad_Workshop_Workbook.pdf , Lab 9)