10 years, 10 months ago.

How can I make use of the FPU?

I see that the LPC4088 has an on board FPU, how can I make sure my code is using this extra power?

Question relating to:

The mbed-enabled LPC4088 QuickStart Board from Embedded Artists is a easy to use ARM Cortex-M4 rapid prototyping board in a standard through hole DIP package (44-pin), targeted at high-performance as …

2 Answers

10 years, 10 months ago.

Hello,

if you are using online compiler, target LPC4088 has set FPU, you can check it on github,

https://github.com/mbedmicro/mbed/blob/master/workspace_tools/targets.py#L177

which then translates into cpu type - Cortex-M4.fp.

Regards,
0xc0170

10 years, 10 months ago.

Along the same theme, what considerations should be made to make sure its being used optimally? For example, the FPU only works on single precision floats, right? So I assume that means i must avoid using double precision floats because that would resort back to software computation.

Are there any other "rules" to keep in mind?

Thanks