This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
As I have mentioned in other posts, I have taken over a project from another programmer and I'm working on figuring everything out. It was a big deal in the beginning to get the program to build properly, because he was using functions in the IQmathLib. I had to copy the IQmath folder from his old laptop in order to compile successfully.
Was there a time that it was required to use this library? Or did he choose the wrong library to start with?
I am now informed that the processor has hardware floating point capability. I assume this would provide a big increase in performance. How do I switch from software floating point functions to using hardware floating point functions?
Hi Mark,
I am now informed that the processor has hardware floating point capability. I assume this would provide a big increase in performance. How do I switch from software floating point functions to using hardware floating point functions?
Your understanding is correct. IQmath a collection of optimized mathematical functions for C programmers to port a floating-point algorithm into fixed-point code on devices without built-in floating point hardware. TM4C129 is based off of Cortex-M4F which has the built-in hardware floating point. The floating point is enabled in the CCS setting during build time.
I checked, and this option is specified in my project already. So if this option is specified as you have directed, the compiler will do what it needs to do and prefer hardware floating point support over the IQmath that is also listed in the include options?
I think it depends what you are trying to achieve. If you are simply doing simple floating point operations like multiplying some floating numbers then I believe the integrated hardware floating unit will do the job fine. If you have some routines that are used in computationally intensive
real-time applications where optimal execution speed and high accuracy is critical then you can still use IQMath library, Refer to the IQMath user's guide for details.
Okay, unless you tell me otherwise, I'm not going to change anything. The program is just doing multiplication and division. I thought maybe I had to remove any reference to IQMath and use a new include file or something like that.
You can keep the IQMath library in your include path and it won't increase your memory footprint if no IQMath function is used. Keep it there incase you do want to use it in the future.