# floating point support

**URL:** <https://forums.freertos.org/t/floating-point-support/3159>\
**Category:** Kernel\
**Created:** [May 7, 2007, 8:11am UTC](https://forums.freertos.org/t/floating-point-support/3159 "2007-05-07T08:11:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 7, 2007, 8:11am UTC](https://forums.freertos.org/t/floating-point-support/3159/1 "2007-05-07T08:11:30Z")

</div>

**nobody** wrote on [Monday, May 07, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/8a60f4f1/#e2bd):

Hi everybody,  
sorry, but Iam a complete newbie on FreeRTOS here.  
My question is, does FreeRTOS support floating point math?  
I use the GCC on ARMSAM7x256.  
Thanks

---

<div class="post-metadata">

**Author:** ![chaalar](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@chaalar](https://forums.freertos.org/u/chaalar)\
**Post date:** [May 7, 2007, 8:16am UTC](https://forums.freertos.org/t/floating-point-support/3159/2 "2007-05-07T08:16:17Z")

</div>

**[chaalar](https://sourceforge.net/u/chaalar/)** wrote on [Monday, May 07, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/8a60f4f1/#e2bd/c664):

FreeRTOS doesn’t but GCC does. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 7, 2007, 8:49am UTC](https://forums.freertos.org/t/floating-point-support/3159/3 "2007-05-07T08:49:29Z")

</div>

**nobody** wrote on [Monday, May 07, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/8a60f4f1/#e2bd/822a):

Hi Çağlar Akyüz  
thank you for your response.  
Do you know a trick to use floating points on FreeRTOS?  
Perhaps: stopping (freezing) RTOS and INTERRUPTS, then perform a  
floating point algorithm, go back to RTOS?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [May 7, 2007, 8:59am UTC](https://forums.freertos.org/t/floating-point-support/3159/4 "2007-05-07T08:59:33Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Monday, May 07, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/8a60f4f1/#e2bd/822a/b20a):

This would only be necessary if the floating point libraries are not re-entrant.&nbsp; Do you know if this is the case or not?&nbsp; I suspect they are re-entrant, in which case you do not need to take any special measures in order to use floating point from within a task (other than ensuring the task has enough stack space to call the library functions).

Regards.

---

<div class="post-metadata">

**Author:** ![chaalar](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@chaalar](https://forums.freertos.org/u/chaalar)\
**Post date:** [May 7, 2007, 9:01am UTC](https://forums.freertos.org/t/floating-point-support/3159/5 "2007-05-07T09:01:55Z")

</div>

**[chaalar](https://sourceforge.net/u/chaalar/)** wrote on [Monday, May 07, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/8a60f4f1/#e2bd/5ff1):

If you want to stop scheduler or interrupts you can but I don’t think it is something desirable.  
Besides it is something application specific.

Moreover, SAM7X do not have a floating-point hardware. That’s make floating point code nothing different, from the  
rtos point of view. That’s a matter of fact for the compiler-library couple.

What I want to say is just implement your favourite algorithm, measure the results. if you \*need\* more time then you can  
always think about disabling interrupts/scheduler.

I hope I get the point.

Best Regards

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 7, 2007, 9:48am UTC](https://forums.freertos.org/t/floating-point-support/3159/6 "2007-05-07T09:48:25Z")

</div>

**nobody** wrote on [Monday, May 07, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/8a60f4f1/#e2bd/ef3f):

many thanks to Richard and Çağlar Akyüz.  
Great help for my next steps with FreeRTOS.  
Best Regards  
Michael
